Skip to main content

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

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).


Back to the top