T - The type (class) of the beanpublic class SessionBean<T> extends AbstractClassBean<T>
annotatedType, enhancedAnnotatedItemtypebeanManager| 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 |
|---|---|
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() |
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() |
void |
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations
only after all beans have been deployed (e.g. for initializing decorators
taking into account the possibility of having custom decorators which are
deployed through portable extensions)
|
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() |
cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, checkBeanImplementation, initType, preSpecialize, setInjectionTarget, setProducer, setProducergetSpecializedBeans, getType, checkSpecialization, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitializegetBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributesattributes, equals, getId, getIdentifier, hashCode, isNullable, unwrapgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBeanClass, isNullablegetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativegetIdprotected 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)
ContextualCreationalContext.release() to allow the container to destroy dependent objects of
the contextual instance.protected 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()
RIBeaninitializeAfterBeanDiscovery in class AbstractBean<T,Class<T>>protected void registerInterceptors()
Copyright © 2015. All Rights Reserved.