Package org.jboss.weld.module
Interface EjbSupport
-
- All Superinterfaces:
org.jboss.weld.bootstrap.api.Service
public interface EjbSupport extends org.jboss.weld.bootstrap.api.ServiceThis service provides EJB support. It is implemented by the weld-ejb module. This is a per-archive service.- Author:
- Jozef Hartinger
-
-
Field Summary
Fields Modifier and Type Field Description static EjbSupportNOOP_IMPLEMENTATION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> BasicInjectionTarget<T>createMessageDrivenInjectionTarget(EnhancedAnnotatedType<T> type, org.jboss.weld.ejb.spi.EjbDescriptor<T> descriptor, BeanManagerImpl manager)Creates anInjectionTargetimplementation for a message-driven bean.voidcreateNewSessionBeans(BeanDeployerEnvironment environment, BeanManagerImpl manager)CreatesNewsession beans and registers them within the given environment.<T> BeanAttributes<T>createSessionBeanAttributes(EnhancedAnnotatedType<T> type, BeanManagerImpl manager)Creates aBeanAttributesobject for a session bean from the given annotated type and ejb descriptor.<T> BasicInjectionTarget<T>createSessionBeanInjectionTarget(EnhancedAnnotatedType<T> type, SessionBean<T> bean, BeanManagerImpl manager)Creates anInjectionTargetimplementation for a given session bean.voidcreateSessionBeans(BeanDeployerEnvironment environment, SetMultimap<Class<?>,SlimAnnotatedType<?>> classes, BeanManagerImpl manager)Creates session beans and registers them within the given environment.<T> org.jboss.weld.ejb.spi.EjbDescriptor<T>getEjbDescriptor(String beanName)Returns anEjbDescriptoridentified by the given name or null if no such descriptor exists.Collection<? extends org.jboss.weld.ejb.spi.EjbDescriptor<?>>getEjbDescriptors()Returns a collection of all known EJB descriptorsClass<? extends Annotation>getTimeoutAnnotation()Returns the class object for thejavax.ejb.Timeoutannotation.booleanisEjb(Class<?> beanClass)Indicates whether anEjbDescriptoris known for a given class.booleanisSessionBeanProxy(Object instance)voidregisterCdiInterceptorsForMessageDrivenBeans(BeanDeployerEnvironment environment, BeanManagerImpl manager)Initializes interception model for MDBs and propagates them toEjbServices.registerInterceptors(org.jboss.weld.ejb.spi.EjbDescriptor, org.jboss.weld.ejb.spi.InterceptorBindings).
-
-
-
Field Detail
-
NOOP_IMPLEMENTATION
static final EjbSupport NOOP_IMPLEMENTATION
-
-
Method Detail
-
createSessionBeanAttributes
<T> BeanAttributes<T> createSessionBeanAttributes(EnhancedAnnotatedType<T> type, BeanManagerImpl manager)
Creates aBeanAttributesobject for a session bean from the given annotated type and ejb descriptor.- Parameters:
type- annotated type that defines the session beandescriptor- session bean descriptormanager- the bean manager- Returns:
- BeanAttributes representation of a given session bean
-
createSessionBeanInjectionTarget
<T> BasicInjectionTarget<T> createSessionBeanInjectionTarget(EnhancedAnnotatedType<T> type, SessionBean<T> bean, BeanManagerImpl manager)
Creates anInjectionTargetimplementation for a given session bean.- Parameters:
type- annotated type that defines the session beandescriptor- session bean descriptormanager- the bean manager- Returns:
- InjectionTarget implementation for a given session bean
-
createMessageDrivenInjectionTarget
<T> BasicInjectionTarget<T> createMessageDrivenInjectionTarget(EnhancedAnnotatedType<T> type, org.jboss.weld.ejb.spi.EjbDescriptor<T> descriptor, BeanManagerImpl manager)
Creates anInjectionTargetimplementation for a message-driven bean.- Parameters:
type- annotated type that defines the message-driven beandescriptor- message-driven bean descriptormanager- the bean manager- Returns:
- InjectionTarget implementation for a given message-driven bean
-
createSessionBeans
void createSessionBeans(BeanDeployerEnvironment environment, SetMultimap<Class<?>,SlimAnnotatedType<?>> classes, BeanManagerImpl manager)
Creates session beans and registers them within the given environment.- Parameters:
environment-classes-manager-
-
createNewSessionBeans
void createNewSessionBeans(BeanDeployerEnvironment environment, BeanManagerImpl manager)
CreatesNewsession beans and registers them within the given environment.- Parameters:
environment-classes-manager-
-
getTimeoutAnnotation
Class<? extends Annotation> getTimeoutAnnotation()
Returns the class object for thejavax.ejb.Timeoutannotation.- Returns:
- the class object for the Timeout annotation or null if the annotation is not present
-
registerCdiInterceptorsForMessageDrivenBeans
void registerCdiInterceptorsForMessageDrivenBeans(BeanDeployerEnvironment environment, BeanManagerImpl manager)
Initializes interception model for MDBs and propagates them toEjbServices.registerInterceptors(org.jboss.weld.ejb.spi.EjbDescriptor, org.jboss.weld.ejb.spi.InterceptorBindings).- Parameters:
environment-manager-
-
isEjb
boolean isEjb(Class<?> beanClass)
Indicates whether anEjbDescriptoris known for a given class.- Parameters:
beanClass-- Returns:
- true if an EjbDescriptor for the given class exists
-
getEjbDescriptor
<T> org.jboss.weld.ejb.spi.EjbDescriptor<T> getEjbDescriptor(String beanName)
Returns anEjbDescriptoridentified by the given name or null if no such descriptor exists.- Parameters:
beanName-- Returns:
- descriptor identified by the given name or null if no such descriptor exists
-
getEjbDescriptors
Collection<? extends org.jboss.weld.ejb.spi.EjbDescriptor<?>> getEjbDescriptors()
Returns a collection of all known EJB descriptors- Returns:
- a collection of all known EJB descriptors
-
isSessionBeanProxy
boolean isSessionBeanProxy(Object instance)
- Parameters:
instance-- Returns:
trueif the given instance represents an internal reference to a session bean (proxy),falseotherwise
-
-