Package org.glassfish.weld.services
Class JCDIServiceImpl
- java.lang.Object
-
- org.glassfish.weld.services.JCDIServiceImpl
-
- All Implemented Interfaces:
JCDIService
@Service @Rank(10) public class JCDIServiceImpl extends Object implements JCDIService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sun.enterprise.container.common.spi.JCDIService
JCDIService.JCDIInjectionContext<T>
-
-
Field Summary
Fields Modifier and Type Field Description static StringSHARED_LOGMESSAGE_RESOURCEstatic StringWELD_LOGGER_SUBSYSTEM_NAME
-
Constructor Summary
Constructors Constructor Description JCDIServiceImpl()
-
Method Summary
-
-
-
Field Detail
-
SHARED_LOGMESSAGE_RESOURCE
public static final String SHARED_LOGMESSAGE_RESOURCE
- See Also:
- Constant Field Values
-
WELD_LOGGER_SUBSYSTEM_NAME
public static final String WELD_LOGGER_SUBSYSTEM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
isCurrentModuleJCDIEnabled
public boolean isCurrentModuleJCDIEnabled()
- Specified by:
isCurrentModuleJCDIEnabledin interfaceJCDIService
-
isJCDIEnabled
public boolean isJCDIEnabled(BundleDescriptor bundle)
- Specified by:
isJCDIEnabledin interfaceJCDIService
-
isCDIScoped
public boolean isCDIScoped(Class<?> clazz)
- Specified by:
isCDIScopedin interfaceJCDIService
-
setELResolver
public void setELResolver(jakarta.servlet.ServletContext servletContext) throws NamingException- Specified by:
setELResolverin interfaceJCDIService- Throws:
NamingException
-
createJCDIInjectionContext
public <T> JCDIService.JCDIInjectionContext<T> createJCDIInjectionContext(EjbDescriptor ejbDesc, T instance, Map<Class<?>,Object> ejbInfo)
- Specified by:
createJCDIInjectionContextin interfaceJCDIService
-
createJCDIInjectionContext
public <T> JCDIService.JCDIInjectionContext<T> createJCDIInjectionContext(EjbDescriptor ejbDesc, Map<Class<?>,Object> ejbInfo)
Description copied from interface:JCDIServiceCreate an ejb via CDI.- Specified by:
createJCDIInjectionContextin interfaceJCDIService- Type Parameters:
T- instance type- Parameters:
ejbDesc- The ejb descriptorejbInfo- Information about the ejb. Entries are the com.sun.ejb.containers.BaseContainer and com.sun.ejb.containers.EJBContextImpl- Returns:
- The created EJB.
-
injectEJBInstance
public <T> void injectEJBInstance(JCDIService.JCDIInjectionContext<T> injectionCtx)
- Specified by:
injectEJBInstancein interfaceJCDIService
-
createManagedObject
public <T> JCDIService.JCDIInjectionContext<T> createManagedObject(Class<T> managedClass, BundleDescriptor bundle)
- Specified by:
createManagedObjectin interfaceJCDIService
-
injectManagedObject
public <T> void injectManagedObject(T managedObject, BundleDescriptor bundle)Perform 299 style injection on themanagedObjectargument.- Specified by:
injectManagedObjectin interfaceJCDIService- Type Parameters:
T- instance type- Parameters:
managedObject- the managed objectbundle- the bundle descriptor
-
createInterceptorInstance
public <T> T createInterceptorInstance(Class<T> interceptorClass, EjbDescriptor ejb, JCDIService.JCDIInjectionContext<T> ejbContext, Set<EjbInterceptor> ejbInterceptors)
Description copied from interface:JCDIServiceCreate an interceptor instance for an ejb.- Specified by:
createInterceptorInstancein interfaceJCDIService- Type Parameters:
T- interceptor type- Parameters:
interceptorClass- The interceptor class.ejb- The ejb descriptor.ejbContext- The ejb jcdi context. This context is only used to store any contexts for interceptors not bound to the ejb. Nothing else in this context will be used in this method as they are most likely null.ejbInterceptors- All of the ejb interceptors for the ejb.- Returns:
- The interceptor instance.
-
createManagedObject
public <T> JCDIService.JCDIInjectionContext<T> createManagedObject(Class<T> managedClass, BundleDescriptor bundle, boolean invokePostConstruct)
- Specified by:
createManagedObjectin interfaceJCDIService
-
createEmptyJCDIInjectionContext
public <T> JCDIService.JCDIInjectionContext<T> createEmptyJCDIInjectionContext()
Description copied from interface:JCDIServiceCreate an empty JCDIInjectionContext.- Specified by:
createEmptyJCDIInjectionContextin interfaceJCDIService- Type Parameters:
T- instance type- Returns:
- The empty JCDIInjectionContext.
-
-