Skip to content

Conversation

@codehustler
Copy link

To be able to access the ExtRequest and its Metadata I created the ExtRequestListener that allows to hook before and after the handleMethodCall. If there is a better way to solve this, please le me know :)

Concrete example:
In addition to the default method args, the client sends audit information to the server. I did not want to change the server API, it should be transparent to the developer that this information was send. The ExtRequestLIstener will extract the audit information from the ExtDirectRequest and set it to a ThreadLocal field in our AuditController Bean.

daniel mueller added 3 commits January 22, 2015 14:09
Conflicts:
	src/test/java/ch/ralscha/extdirectspring/controller/ApiControllerTest.java
@ralscha ralscha added this to the 1.5.1 milestone Jan 22, 2015
ralscha added a commit that referenced this pull request Jan 22, 2015
Add ability to intercept "handleMethodCall"
@ralscha ralscha merged commit 87749e4 into ralscha:next Jan 22, 2015
@codehustler
Copy link
Author

i have to make the injection optional, tests failed :/ this was my first ever pull request sorry...

@ralscha
Copy link
Owner

ralscha commented Jan 22, 2015

No problem. Just noticed the same and wanted to fix it. But I'm glad if you can do it.

@codehustler
Copy link
Author

it is fixed now, the build of the pull request runs without failing tests.

Gesendet: Donnerstag, 22. Januar 2015 um 15:14 Uhr
Von: "Ralph Schaer" notifications@github.com
An: ralscha/extdirectspring <>
Cc: Mulder8472 <>
Betreff: Re: [extdirectspring] Add ability to intercept "handleMethodCall" (#134)

No problem. Just noticed the same and wanted to fix it. But I'm glad if you can do it.


Reply to this email directly or view it on GitHub.

 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants