public interface InjectionManagerStore
injection manager
designed for Jersey
CDI extension
. This SPI is designed to support deployments that can contain
more than one Jersey/InjectionManager managed CDI component provider
(more injection manager) but only single CDI extension instance (e.g. EAR with multiple WARs). Each CDI component provider
instance acknowledges the manager about new injection manager and manager is supposed to return the effective injection manager
for the current context (based on the Servlet context, for example).Modifier and Type | Method and Description |
---|---|
InjectionManager |
getEffectiveInjectionManager()
Obtain the effective
injection manager . |
void |
registerInjectionManager(InjectionManager injectionManager)
Register a new
injection manager with this manager. |
void registerInjectionManager(InjectionManager injectionManager)
injection manager
with this manager.injectionManager
- injection manager to be registered.InjectionManager getEffectiveInjectionManager()
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).Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.