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 of
InjectionManagerFactory which provides a new instance of CDI InjectionManager.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanTrue when CDI injection on client is supportedstatic booleanTrue when @Context mixed with @Inject is to be supported -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.create(Object parent, Configuration configuration) create(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
getInjectionManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.glassfish.jersey.internal.inject.InjectionManagerFactory
create
-
Field Details
-
SUPPORT_CONTEXT
public static boolean SUPPORT_CONTEXTTrue when @Context mixed with @Inject is to be supported -
SUPPORT_CLIENT
public static boolean SUPPORT_CLIENTTrue when CDI injection on client is supported
-
-
Constructor Details
-
CdiInjectionManagerFactory
public CdiInjectionManagerFactory()
-
-
Method Details
-
create
Deprecated.- Specified by:
createin interfaceInjectionManagerFactory
-
create
- Specified by:
createin interfaceInjectionManagerFactory
-
create
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.
-