public abstract class GenericInjectionManagerStore extends Object implements org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore, org.glassfish.jersey.ext.cdi1x.internal.spi.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 |
---|---|
org.glassfish.jersey.internal.inject.InjectionManager |
getEffectiveInjectionManager()
Obtain the effective
injection manager . |
abstract org.glassfish.jersey.internal.inject.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(org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerInjectedTarget target)
Notify the HK2 locator manager about new injection target being processed.
|
void |
registerInjectionManager(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Register a new
injection manager with this manager. |
public void registerInjectionManager(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore
injection manager
with this manager.registerInjectionManager
in interface org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore
injectionManager
- injection manager to be registered.public org.glassfish.jersey.internal.inject.InjectionManager getEffectiveInjectionManager()
org.glassfish.jersey.ext.cdi1x.internal.spi.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 org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore
public abstract org.glassfish.jersey.internal.inject.InjectionManager lookupInjectionManager()
public void notify(org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerInjectedTarget target)
org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionTargetListener
notify
in interface org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionTargetListener
target
- processed injection target.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.