T
- The type (class) of the beanpublic class SessionBean<T> extends AbstractClassBean<T>
annotatedType, enhancedAnnotatedItem
type
beanManager
Modifier | Constructor and Description |
---|---|
protected |
SessionBean(BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> type,
InternalEjbDescriptor<T> ejbDescriptor,
BeanIdentifier identifier,
BeanManagerImpl manager)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkConflictingRoles()
Validates for non-conflicting roles
|
protected void |
checkObserverMethods()
If there are any observer methods, they must be static or business
methods.
|
protected void |
checkScopeAllowed()
Check that the scope type is allowed by the stereotypes on the bean and
the bean type
|
protected void |
checkType() |
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
SessionObjectReference |
createReference() |
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroy an instance of the contextual type.
|
protected Set<MethodSignature> |
getBusinessMethodSignatures() |
InternalEjbDescriptor<T> |
getEjbDescriptor() |
void |
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations
only after all beans have been deployed (e.g.
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
boolean |
isClientCanCallRemoveMethods() |
protected boolean |
isInterceptionCandidate() |
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
boolean |
isProxyable() |
static <T> SessionBean<T> |
of(BeanAttributes<T> attributes,
InternalEjbDescriptor<T> ejbDescriptor,
BeanManagerImpl beanManager,
EnhancedAnnotatedType<T> type)
Creates a simple, annotation defined Enterprise Web Bean using the annotations specified on type
|
protected void |
registerInterceptors() |
protected void |
specialize() |
String |
toString() |
checkBeanImplementation, cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducer, setProducer
checkSpecialization, getSpecializedBeans, getType, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitialize
getBeanClass, getBeanManager, getQualifierInstances, initialize, isNormalScoped
attributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBeanClass, isNullable
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
getId
protected SessionBean(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, InternalEjbDescriptor<T> ejbDescriptor, BeanIdentifier identifier, BeanManagerImpl manager)
type
- The type of the beanmanager
- The Bean managerpublic static <T> SessionBean<T> of(BeanAttributes<T> attributes, InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager, EnhancedAnnotatedType<T> type)
T
- The typebeanManager
- the current managertype
- the AnnotatedType to usepublic void internalInitialize(BeanDeployerEnvironment environment)
internalInitialize
in class AbstractClassBean<T>
protected void checkConflictingRoles()
protected void checkScopeAllowed()
protected void specialize()
specialize
in class AbstractBean<T,Class<T>>
public T create(CreationalContext<T> creationalContext)
creationalContext
- the context in which this instance is being createdpublic void destroy(T instance, CreationalContext<T> creationalContext)
Contextual
CreationalContext.release()
to allow the container to destroy dependent objects of
the contextual instance.instance
- the contextual instance to destroycreationalContext
- the context in which this instance was createdprotected void checkType()
checkType
in class AbstractBean<T,Class<T>>
public InternalEjbDescriptor<T> getEjbDescriptor()
public boolean isClientCanCallRemoveMethods()
protected void checkObserverMethods()
protected Set<MethodSignature> getBusinessMethodSignatures()
public SessionObjectReference createReference()
protected boolean isInterceptionCandidate()
isInterceptionCandidate
in class AbstractClassBean<T>
public String toString()
toString
in class CommonBean<T>
public boolean isProxyable()
isProxyable
in class RIBean<T>
public boolean isPassivationCapableBean()
isPassivationCapableBean
in class RIBean<T>
public boolean isPassivationCapableDependency()
isPassivationCapableDependency
in class RIBean<T>
public void initializeAfterBeanDiscovery()
RIBean
initializeAfterBeanDiscovery
in class AbstractBean<T,Class<T>>
protected void registerInterceptors()
Copyright © 2013 Seam Framework. All Rights Reserved.