Package org.jboss.weld.bean
Class NewSessionBean<T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.bean.CommonBean<T>
-
- org.jboss.weld.bean.RIBean<T>
-
- org.jboss.weld.bean.AbstractBean<T,Class<T>>
-
- org.jboss.weld.bean.AbstractClassBean<T>
-
- org.jboss.weld.bean.SessionBean<T>
-
- org.jboss.weld.bean.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
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.bean.AbstractClassBean
annotatedType, enhancedAnnotatedItem
-
Fields inherited from class org.jboss.weld.bean.AbstractBean
type
-
Fields inherited from class org.jboss.weld.bean.RIBean
beanManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNewSessionBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, InternalEjbDescriptor<T> ejbDescriptor, org.jboss.weld.serialization.spi.BeanIdentifier identifier, BeanManagerImpl beanManager)Protected constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckScopeAllowed()Check that the scope type is allowed by the stereotypes on the bean and the bean typebooleanisSpecializing()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 classStringtoString()-
Methods inherited from class org.jboss.weld.bean.SessionBean
checkConflictingRoles, checkObserverMethods, checkType, create, createReference, destroy, getBusinessMethodSignatures, getEjbDescriptor, initializeAfterBeanDiscovery, internalInitialize, isClientCanCallRemoveMethods, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, of, registerInterceptors, specialize
-
Methods inherited from class org.jboss.weld.bean.AbstractClassBean
checkBeanImplementation, cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducer, setProducer
-
Methods inherited from class org.jboss.weld.bean.AbstractBean
checkSpecialization, getSpecializedBeans, getType, isDependent, isProxyRequired, postSpecialize, preInitialize
-
Methods inherited from class org.jboss.weld.bean.RIBean
getBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributes
-
Methods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, isNullable, unwrap
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
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 classbeanManager- 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 classbeanManager- The Bean manager- Returns:
- a new NewEnterpriseBean instance
-
isSpecializing
public boolean isSpecializing()
- Overrides:
isSpecializingin classAbstractBean<T,Class<T>>
-
checkScopeAllowed
protected void checkScopeAllowed()
Description copied from class:SessionBeanCheck that the scope type is allowed by the stereotypes on the bean and the bean type- Overrides:
checkScopeAllowedin classSessionBean<T>
-
toString
public String toString()
- Overrides:
toStringin classSessionBean<T>
-
-