Package org.jboss.weld.module
Interface EjbSupport
- All Superinterfaces:
org.jboss.weld.bootstrap.api.Service
public interface EjbSupport
extends org.jboss.weld.bootstrap.api.Service
This service provides EJB support. It is implemented by the weld-ejb module. This is a per-archive service.
- Author:
- Jozef Hartinger
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> BasicInjectionTarget<T>createMessageDrivenInjectionTarget(EnhancedAnnotatedType<T> type, org.jboss.weld.ejb.spi.EjbDescriptor<T> descriptor, BeanManagerImpl manager) Creates anInjectionTargetimplementation for a message-driven bean.<T> jakarta.enterprise.inject.spi.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<?>>Returns a collection of all known EJB descriptorsClass<? extends Annotation>Returns the class object for thejakarta.ejb.Timeoutannotation.booleanIndicates 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).Methods inherited from interface org.jboss.weld.bootstrap.api.Service
cleanup
-
Field Details
-
NOOP_IMPLEMENTATION
-
-
Method Details
-
createSessionBeanAttributes
<T> jakarta.enterprise.inject.spi.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-
-
getTimeoutAnnotation
Class<? extends Annotation> getTimeoutAnnotation()Returns the class object for thejakarta.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
Indicates whether anEjbDescriptoris known for a given class.- Parameters:
beanClass-- Returns:
- true if an EjbDescriptor for the given class exists
-
getEjbDescriptor
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
- Parameters:
instance-- Returns:
trueif the given instance represents an internal reference to a session bean (proxy),falseotherwise
-