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 Modifier and Type Field Description static EjbSupport
NOOP_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 anInjectionTarget
implementation for a message-driven bean.void
createNewSessionBeans(BeanDeployerEnvironment environment, BeanManagerImpl manager)
CreatesNew
session beans and registers them within the given environment.<T> jakarta.enterprise.inject.spi.BeanAttributes<T>
createSessionBeanAttributes(EnhancedAnnotatedType<T> type, BeanManagerImpl manager)
Creates aBeanAttributes
object 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 anInjectionTarget
implementation for a given session bean.void
createSessionBeans(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 anEjbDescriptor
identified 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 thejakarta.ejb.Timeout
annotation.boolean
isEjb(Class<?> beanClass)
Indicates whether anEjbDescriptor
is known for a given class.boolean
isSessionBeanProxy(Object instance)
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)
.
-
-
-
Field Detail
-
NOOP_IMPLEMENTATION
static final EjbSupport NOOP_IMPLEMENTATION
-
-
Method Detail
-
createSessionBeanAttributes
<T> jakarta.enterprise.inject.spi.BeanAttributes<T> createSessionBeanAttributes(EnhancedAnnotatedType<T> type, BeanManagerImpl manager)
Creates aBeanAttributes
object 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 anInjectionTarget
implementation 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 anInjectionTarget
implementation 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)
CreatesNew
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.Timeout
annotation.- 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 anEjbDescriptor
is 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 anEjbDescriptor
identified 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:
true
if the given instance represents an internal reference to a session bean (proxy),false
otherwise
-
-