@Service @Rank(value=10) public class JCDIServiceImpl extends Object implements JCDIService
JCDIService.JCDIInjectionContext<T>| Modifier and Type | Field and Description |
|---|---|
static String |
SHARED_LOGMESSAGE_RESOURCE |
static String |
WELD_LOGGER_SUBSYSTEM_NAME |
| Constructor and Description |
|---|
JCDIServiceImpl() |
public static final String SHARED_LOGMESSAGE_RESOURCE
public static final String WELD_LOGGER_SUBSYSTEM_NAME
public boolean isCurrentModuleJCDIEnabled()
isCurrentModuleJCDIEnabled in interface JCDIServicepublic boolean isJCDIEnabled(BundleDescriptor bundle)
isJCDIEnabled in interface JCDIServicepublic boolean isCDIScoped(Class<?> clazz)
isCDIScoped in interface JCDIServicepublic void setELResolver(javax.servlet.ServletContext servletContext)
throws NamingException
setELResolver in interface JCDIServiceNamingExceptionpublic <T> JCDIService.JCDIInjectionContext<T> createJCDIInjectionContext(EjbDescriptor ejbDesc, T instance, Map<Class<?>,Object> ejbInfo)
createJCDIInjectionContext in interface JCDIServicepublic <T> JCDIService.JCDIInjectionContext<T> createJCDIInjectionContext(EjbDescriptor ejbDesc, Map<Class<?>,Object> ejbInfo)
JCDIServicecreateJCDIInjectionContext in interface JCDIServiceT - instance typeejbDesc - The ejb descriptorejbInfo - Information about the ejb. Entries are the com.sun.ejb.containers.BaseContainer
and com.sun.ejb.containers.EJBContextImplpublic <T> void injectEJBInstance(JCDIService.JCDIInjectionContext<T> injectionCtx)
injectEJBInstance in interface JCDIServicepublic <T> JCDIService.JCDIInjectionContext<T> createManagedObject(Class<T> managedClass, BundleDescriptor bundle)
createManagedObject in interface JCDIServicepublic <T> void injectManagedObject(T managedObject,
BundleDescriptor bundle)
managedObject argument.injectManagedObject in interface JCDIServiceT - instance typemanagedObject - the managed objectbundle - the bundle descriptorpublic <T> T createInterceptorInstance(Class<T> interceptorClass, EjbDescriptor ejb, JCDIService.JCDIInjectionContext<T> ejbContext, Set<EjbInterceptor> ejbInterceptors)
JCDIServicecreateInterceptorInstance in interface JCDIServiceT - interceptor typeinterceptorClass - 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.public <T> JCDIService.JCDIInjectionContext<T> createManagedObject(Class<T> managedClass, BundleDescriptor bundle, boolean invokePostConstruct)
createManagedObject in interface JCDIServicepublic <T> JCDIService.JCDIInjectionContext<T> createEmptyJCDIInjectionContext()
JCDIServicecreateEmptyJCDIInjectionContext in interface JCDIServiceT - instance typeCopyright © 2019. All rights reserved.