Sergey Beryozkin wrote:
> Hi
>
> My understanding is that you can get @Context values injected as method
> parameters
> of subresource locator resource methods
>
Correct. Although a disadvantage is that the UriInfo parameter may get
"sprinkled" over many methods,
I have been experimenting with three implementation specific things in
this respect.
1) returning a Class from the sub-locator;
2) Injecting a ResourceContext that can be used to get an instance of a
resource class from which it can be modified and then returned from
the sub-locator; and
3) See a discussion in the comments on a blog entry i wrote [1].
Paul.
[1]
http://blogs.sun.com/sandoz/entry/ejb_injection#comment-1217426760000
http://blogs.sun.com/sandoz/entry/ejb_injection#comments
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109