Class CdiInjectionManagerFactory
- java.lang.Object
-
- org.glassfish.jersey.inject.weld.internal.managed.CdiInjectionManagerFactoryBase
-
- org.glassfish.jersey.inject.weld.managed.CdiInjectionManagerFactory
-
- All Implemented Interfaces:
InjectionManagerFactory
@Priority(20) public class CdiInjectionManagerFactory extends CdiInjectionManagerFactoryBase implements InjectionManagerFactory
SPI implementation ofInjectionManagerFactorywhich provides a new instance of CDIInjectionManager.
-
-
Constructor Summary
Constructors Constructor Description CdiInjectionManagerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectionManagercreate(Object parent)InjectionManagercreate(Object parent, RuntimeType runtimeType)Create injectionManager foror get the existing injection manager for the serverstatic InjectionManagergetInjectionManager(jakarta.enterprise.context.spi.CreationalContext<?> creationalContext)Get the client side InjectionManager stored in theCreationalContextor the server side InjectionManager.-
Methods inherited from class org.glassfish.jersey.inject.weld.internal.managed.CdiInjectionManagerFactoryBase
getInjectionManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.jersey.internal.inject.InjectionManagerFactory
create
-
-
-
-
Method Detail
-
create
public InjectionManager create(Object parent)
- Specified by:
createin interfaceInjectionManagerFactory
-
create
public InjectionManager create(Object parent, RuntimeType runtimeType)
Create injectionManager foror get the existing injection manager for the server- Parameters:
parent- Parent injection manager. Not used in this InjectionManagerFactory.runtimeType-RuntimeTypeto get or create the proper injection manager.- Returns:
- The required injection manager instance.
-
getInjectionManager
public static InjectionManager getInjectionManager(jakarta.enterprise.context.spi.CreationalContext<?> creationalContext)
Get the client side InjectionManager stored in theCreationalContextor the server side InjectionManager.- Parameters:
creationalContext-CreationalContextsubclass which may hold InjectionManager for the client- Returns:
- existing client side injection or server side injection manager.
-
-