users@jersey.java.net

Re: [Jersey] Resource life cycle and injections

From: beanor <beanor_at_gmail.com>
Date: Sun, 8 Mar 2009 17:51:58 -0700 (PDT)

Hi Erdinc,

You can find the jersey life cycle from
http://wikis.sun.com/display/Jersey/Overview+of+JAX-RS+1.0+Features. The
document point out jersey's resource life cycle is per-reuqest.

I don't know how to manage the resource instanse with ioc framework. also I
hope somebody tell me that.


Erdinc Yilmazel wrote:
>
> Hello,
>
> Where can I find detailed information about life cycle of resource
> instances and how to use the @Inject annotation in resource classes? I
> know that if I use @Singleton annotation jersey creates just one
> instance for the resource, however I don't know how I can access this
> instance that jersey created for me.
>
> I want to use a dependency injection framework such as guice to manage
> the resource instances and injections that are made in these objects.
> Can you show me a starting point in implementing such behavior?
>
> Thank you,
> Erdinc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
>

-- 
View this message in context: http://n2.nabble.com/Resource-life-cycle-and-injections-tp2437315p2446846.html
Sent from the Jersey mailing list archive at Nabble.com.