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 InjectionManager
CDI container specific method to obtain the actual injection manager belonging to the Jersey application where the current HTTP requests is being processed.void
notify
(InjectionManagerInjectedTarget target) Notify the HK2 locator manager about new injection target being processed.void
registerInjectionManager
(InjectionManager injectionManager) Register a newinjection manager
with this manager.
-
Constructor Details
-
GenericInjectionManagerStore
public GenericInjectionManagerStore()
-
-
Method Details
-
registerInjectionManager
Description copied from interface:InjectionManagerStore
Register a newinjection manager
with this manager.- Specified by:
registerInjectionManager
in interfaceInjectionManagerStore
- Parameters:
injectionManager
- injection manager to be registered.
-
getEffectiveInjectionManager
Description copied from interface:InjectionManagerStore
Obtain 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:
getEffectiveInjectionManager
in 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:InjectionTargetListener
Notify the HK2 locator manager about new injection target being processed.- Specified by:
notify
in interfaceInjectionTargetListener
- Parameters:
target
- processed injection target.
-