users@jersey.java.net

[Jersey] Re: _at_Context field injection timing

From: John Yeary <johnyeary_at_gmail.com>
Date: Sat, 21 Jan 2012 21:36:39 -0500

I am not sure of the lifecycle point, but I am curious which @Context
object are you trying to inject at a field level.

There are five default context objects: UriInfo, Request, HttpHeaders,
SecurityContext, and Providers.

John
____________________________

John Yeary
____________________________

<http://javaevangelist.blogspot.com/> <https://twitter.com/jyeary>
<http://www.youtube.com/johnyeary>
  <http://www.linkedin.com/in/jyeary>
<https://plus.google.com/112146428878473069965>
  <http://www.facebook.com/jyeary>
<http://feeds.feedburner.com/JavaEvangelistJohnYearysBlog>
  <http://netbeans.org/people/84414-jyeary>
____________________________

"Far better it is to dare mighty things, to win glorious triumphs, even
though checkered by failure, than to take rank with those poor spirits who
neither enjoy much nor suffer much, because they live in the gray twilight
that knows not victory nor defeat."
-- Theodore Roosevelt



On Fri, Jan 20, 2012 at 1:35 PM, <msummers57_at_gmail.com> wrote:

> At what point in the object's lifecycle is field level Context
> injection done?
>
> I've run a simple experiment and can get @Context UriInfo injected on
> the constructor and a setter bean but can't seem to get a @Context
> annotated field set.
>
> TIA.
>