This content has been marked as final.
Show 3 replies
-
1. Re: PreProcessInterceptor: @Context vs. HttpRequest parameter
nickarls Feb 1, 2013 5:23 AM (in response to michael.steffens)The underlying implementation class is the same so I guess they can be cast to the same thing
-
2. Re: PreProcessInterceptor: @Context vs. HttpRequest parameter
michael.steffens Feb 1, 2013 5:41 AM (in response to nickarls)With underlying implementation class, do you mean the class or the actual object?
Are there conditions with one of them being null while the other isn't? Or could they ever refer to different HTTP requests?
-
3. Re: PreProcessInterceptor: @Context vs. HttpRequest parameter
nickarls Feb 1, 2013 5:55 AM (in response to michael.steffens)Injection is not magic, there is some kind of "injection provider" that looks at the annotations and method signatures and "force feeds" some value to them. This value is taken from somewhere (in this case the active http request). I would say that there is a bug somewhere is both methods are supported but the value of the different approaches differ.