Refreshes Spring context on reload and close it on shutdown. HK2 invokes this resolver and asks it to resolve dependencies annotated using container lifecycle events. HK2 injection resolver that injects dependencies declared using Spring framework annotation. When being run outside of servlet context, a custom .request.RequestScope implementation is configured to implement request scope for beans. This class also initializes HK2 spring-bridge and registers Spring annotation handler with HK2 ServiceLocator. Otherwise, Jersey would bind these classes to HK2 ServiceLocator with Jersey default scope without respecting the scope declared for the Spring component. It makes Jersey skip JAX-RS life-cycle management for Spring components. This ComponentProvider implementation is registered with Jersey SPI extension mechanism and it’s responsible for bootstrapping Jersey 2 Spring integration. Jersey-Spring integration consists of the following implementation classes: Source code for the Jersey-Spring integration can be found in the main Jersey source repository: Bean scope is declared in applicationContext.xml.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |