Class NewSessionBean<T>

  • All Implemented Interfaces:
    javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.BeanAttributes<T>, javax.enterprise.inject.spi.PassivationCapable, DecorableBean<T>, NewBean

    public class NewSessionBean<T>
    extends SessionBean<T>
    implements NewBean
    Represents a @New enterprise bean
    Author:
    Nicklas Karlsson
    • Constructor Detail

      • NewSessionBean

        protected NewSessionBean​(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
                                 EnhancedAnnotatedType<T> type,
                                 InternalEjbDescriptor<T> ejbDescriptor,
                                 org.jboss.weld.serialization.spi.BeanIdentifier identifier,
                                 BeanManagerImpl beanManager)
        Protected constructor
        Parameters:
        type - An annotated class
        beanManager - The Bean manager
    • Method Detail

      • of

        public static <T> NewSessionBean<T> of​(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
                                               InternalEjbDescriptor<T> ejbDescriptor,
                                               BeanManagerImpl beanManager)
        Creates an instance of a NewEnterpriseBean from an annotated class
        Parameters:
        clazz - The annotated class
        beanManager - The Bean manager
        Returns:
        a new NewEnterpriseBean instance
      • checkScopeAllowed

        protected void checkScopeAllowed()
        Description copied from class: SessionBean
        Check that the scope type is allowed by the stereotypes on the bean and the bean type
        Overrides:
        checkScopeAllowed in class SessionBean<T>