Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] ResourceConfig lifecycle

Are you asking about a Jersey ResourceConfig? or something else?

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts

On Wed, Jul 16, 2014 at 5:08 PM, Louis Crandell <crandell.louis@xxxxxxxxx> wrote:
We are bootstraping our web application configuration by extending a ResourceConfig. 
Is it expected the constructor of this class is invoked for each resource request or not? 
I'm asking this as I register a new AnnotationConfigApplicationContext, the SpringWebApplicationInitializer, the SpringLifecycleListener and the SpringComponentProvider and I'm a bit puzzled whether the context is actually re-used between requests or are we bootstrapping it all the time.
What is the actual behaviour for spring managed beans and contexts?
Can I inject in a ResourceConfig a @Context ApplicationContext? Can this be a singleton and final (I guess no to final).


jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top