public abstract class GenericInjectionManagerStore extends Object implements InjectionManagerStore, InjectionTargetListener
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.Constructor and Description |
---|
GenericInjectionManagerStore() |
Modifier and Type | Method and Description |
---|---|
InjectionManager |
getEffectiveInjectionManager()
Obtain the effective
injection manager . |
abstract InjectionManager |
lookupInjectionManager()
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 new
injection manager with this manager. |
public void registerInjectionManager(InjectionManager injectionManager)
InjectionManagerStore
injection manager
with this manager.registerInjectionManager
in interface InjectionManagerStore
injectionManager
- injection manager to be registered.public InjectionManager getEffectiveInjectionManager()
InjectionManagerStore
injection 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).getEffectiveInjectionManager
in interface InjectionManagerStore
public abstract InjectionManager lookupInjectionManager()
public void notify(InjectionManagerInjectedTarget target)
InjectionTargetListener
notify
in interface InjectionTargetListener
target
- processed injection target.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.