org.jboss.weld.bean
Class NewSessionBean<T>
java.lang.Object
org.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,java.lang.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.PassivationCapable, NewBean
public class NewSessionBean<T>
- extends SessionBean<T>
- implements NewBean
Represents a @New enterprise bean
- Author:
- Nicklas Karlsson
|
Method Summary |
protected void |
checkScopeAllowed()
Check that the scope type is allowed by the stereotypes on the bean and
the bean type |
java.lang.String |
getName()
Gets the name of the bean |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Gets the bindings |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Gets the scope type |
boolean |
isAlternative()
|
boolean |
isSpecializing()
|
static
|
of(InternalEjbDescriptor<T> ejbDescriptor,
BeanManagerImpl manager)
Creates an instance of a NewEnterpriseBean from an annotated class |
| Methods inherited from class org.jboss.weld.bean.SessionBean |
checkConflictingRoles, checkObserverMethods, create, createReference, destroy, getDescription, getEjbDescriptor, getSpecializedBean, getStereotypes, initialize, initProxyClass, initSerializable, initTypes, isClientCanCallRemoveMethods, isInterceptionCandidate, isMethodExistsOnTypes, isSerializable, preSpecialize, specialize |
| Methods inherited from class org.jboss.weld.bean.AbstractClassBean |
applyDecorators, checkBeanImplementation, checkType, defaultPostConstruct, defaultPreDestroy, flattenInterceptorBindings, getAnnotatedItem, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getSuperclasses, hasDecorators, initDecorators, initInitializerMethods, initInjectableFields, initInterceptors, initPostConstruct, initPreDestroy, initProxyClassForDecoratedBean, initScopeType, initType, setInjectionTarget |
| Methods inherited from class org.jboss.weld.bean.AbstractBean |
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, getAnnotatedInjectionPoints, getDelegateInjectionPoints, getMergedStereotypes, getType, getTypes, initBindings, initDefaultBindings, initName, initPolicy, initPrimitive, initProxyable, initScopeTypeFromStereotype, initStereotypes, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyable, postSpecialize |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NewSessionBean
protected NewSessionBean(WeldClass<T> type,
InternalEjbDescriptor<T> ejbDescriptor,
java.lang.String idSuffix,
BeanManagerImpl manager)
- Protected constructor
- Parameters:
type - An annotated classmanager - The Bean manager
of
public static <T> NewSessionBean<T> of(InternalEjbDescriptor<T> ejbDescriptor,
BeanManagerImpl manager)
- Creates an instance of a NewEnterpriseBean from an annotated class
- Parameters:
clazz - The annotated classmanager - The Bean manager
- Returns:
- a new NewEnterpriseBean instance
getScope
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
- Gets the scope type
- Specified by:
getScope in interface javax.enterprise.inject.spi.Bean<T>- Overrides:
getScope in class AbstractBean<T,java.lang.Class<T>>
- Returns:
- @Dependent
- See Also:
org.jboss.weld.bean.BaseBean#getScope()
isAlternative
public boolean isAlternative()
- Specified by:
isAlternative in interface javax.enterprise.inject.spi.Bean<T>- Overrides:
isAlternative in class AbstractBean<T,java.lang.Class<T>>
getName
public java.lang.String getName()
- Gets the name of the bean
- Specified by:
getName in interface javax.enterprise.inject.spi.Bean<T>- Overrides:
getName in class AbstractBean<T,java.lang.Class<T>>
- Returns:
- null
- See Also:
org.jboss.weld.bean.BaseBean#getName()
getQualifiers
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
- Gets the bindings
- Specified by:
getQualifiers in interface javax.enterprise.inject.spi.Bean<T>- Overrides:
getQualifiers in class AbstractBean<T,java.lang.Class<T>>
- Returns:
- The set of binding types
- See Also:
org.jboss.weld.bean.BaseBean#getQualifiers()
isSpecializing
public boolean isSpecializing()
- Overrides:
isSpecializing in class AbstractBean<T,java.lang.Class<T>>
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>
Copyright © 2008-2009 Seam Framework. All Rights Reserved.