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 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 a BeanAttributes object for a session bean from the given annotated type and ejb descriptor.
        Parameters:
        type - annotated type that defines the session bean
        descriptor - session bean descriptor
        manager - 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 an InjectionTarget implementation for a given session bean.
        Parameters:
        type - annotated type that defines the session bean
        descriptor - session bean descriptor
        manager - 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 an InjectionTarget implementation for a message-driven bean.
        Parameters:
        type - annotated type that defines the message-driven bean
        descriptor - message-driven bean descriptor
        manager - the bean manager
        Returns:
        InjectionTarget implementation for a given message-driven bean
      • createNewSessionBeans

        void createNewSessionBeans​(BeanDeployerEnvironment environment,
                                   BeanManagerImpl manager)
        Creates New session beans and registers them within the given environment.
        Parameters:
        environment -
        classes -
        manager -
      • getTimeoutAnnotation

        Class<? extends Annotation> getTimeoutAnnotation()
        Returns the class object for the jakarta.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 to EjbServices.registerInterceptors(org.jboss.weld.ejb.spi.EjbDescriptor, org.jboss.weld.ejb.spi.InterceptorBindings).
        Parameters:
        environment -
        manager -
      • isEjb

        boolean isEjb​(Class<?> beanClass)
        Indicates whether an EjbDescriptor 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 an EjbDescriptor 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