Class GenericInjectionManagerStore
java.lang.Object
org.glassfish.jersey.ext.cdi1x.internal.GenericInjectionManagerStore
- All Implemented Interfaces:
InjectionManagerStore,InjectionTargetListener
public abstract class GenericInjectionManagerStore
extends Object
implements InjectionManagerStore, InjectionTargetListener
Generic
injection manager store that allows multiple
injection managers to run in parallel. lookupInjectionManager()
method must be implemented that shall be utilized at runtime in the case that more than a single
injection manager has been registered.- Since:
- 2.20
- Author:
- Jakub Podlesak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtain the effectiveinjection manager.abstract InjectionManagerCDI container specific method to obtain the actual injection manager belonging to the Jersey application where the current HTTP requests is being processed.voidnotify(InjectionManagerInjectedTarget target) Notify the HK2 locator manager about new injection target being processed.voidregisterInjectionManager(InjectionManager injectionManager) Register a newinjection managerwith this manager.
-
Constructor Details
-
GenericInjectionManagerStore
public GenericInjectionManagerStore()
-
-
Method Details
-
registerInjectionManager
Description copied from interface:InjectionManagerStoreRegister a newinjection managerwith this manager.- Specified by:
registerInjectionManagerin interfaceInjectionManagerStore- Parameters:
injectionManager- injection manager to be registered.
-
getEffectiveInjectionManager
Description copied from interface:InjectionManagerStoreObtain the effectiveinjection manager. The implementations are supposed to decide which of the registered injection managers is the currently effective locator. The decision can be based, for example, on current Servlet context (if the application is deployed on Servlet container).- Specified by:
getEffectiveInjectionManagerin interfaceInjectionManagerStore- Returns:
- currently effective injection manager.
-
lookupInjectionManager
CDI container specific method to obtain the actual injection manager belonging to the Jersey application where the current HTTP requests is being processed.- Returns:
- actual injection manager.
-
notify
Description copied from interface:InjectionTargetListenerNotify the HK2 locator manager about new injection target being processed.- Specified by:
notifyin interfaceInjectionTargetListener- Parameters:
target- processed injection target.
-