T - The type (class) of the beanpublic class SessionBean<T> extends AbstractClassBean<T>
annotatedItem, constructorForEnhancedSubclass, decoratorProxyFactory, enhancedSubclassalternative, beanManager, name, qualifiers, scope, type, typesBEAN_ID_PREFIX, BEAN_ID_SEPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
SessionBean(WeldClass<T> type,
InternalEjbDescriptor<T> ejbDescriptor,
String idSuffix,
BeanManagerImpl manager,
ServiceRegistry services)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
applyDecorators(T instance,
CreationalContext<T> creationalContext,
InjectionPoint originalInjectionPoint) |
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
protected static String |
createId(String beanType,
InternalEjbDescriptor<?> ejbDescriptor) |
protected static String |
createId(String beanType,
InternalEjbDescriptor<?> ejbDescriptor,
WeldClass<?> type) |
protected T |
createInstance(CreationalContext<T> ctx) |
SessionObjectReference |
createReference() |
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroy an instance of the contextual type.
|
InternalEjbDescriptor<T> |
getEjbDescriptor() |
AbstractBean<?,?> |
getSpecializedBean() |
boolean |
hasDefaultProducer()
Returns true if the bean uses the default
Producer ( or InjectionTarget). |
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 |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
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)
|
protected void |
initProxyClass() |
protected void |
initTypes() |
boolean |
isClientCanCallRemoveMethods() |
protected boolean |
isInterceptionCandidate() |
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
boolean |
isProxyable() |
static <T> SessionBean<T> |
of(InternalEjbDescriptor<T> ejbDescriptor,
BeanManagerImpl beanManager,
ServiceRegistry services)
Creates a simple, annotation defined Enterprise Web Bean
|
static <T> SessionBean<T> |
of(InternalEjbDescriptor<T> ejbDescriptor,
BeanManagerImpl beanManager,
WeldClass<T> type,
ServiceRegistry services)
Creates a simple, annotation defined Enterprise Web Bean using the annotations specified on type
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
Validates specialization
|
protected void |
registerInterceptors() |
protected void |
specialize(BeanDeployerEnvironment environment) |
String |
toString() |
createEnhancedSubclass, defaultPostConstruct, defaultPreDestroy, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getWeldAnnotated, hasDecorators, hasInterceptors, checkBeanImplementation, checkConstructor, initAfterInterceptorsAndDecoratorsInitialized, initConstructor, initDecorators, initEnhancedSubclass, initInitializerMethods, initInjectableFields, initInterceptorsIfNeeded, initPostConstruct, initPreDestroy, initScope, initType, isSubclassed, setInjectionTargetaddInjectionPoint, addInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, checkDelegateInjectionPoints, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, isAlternative, isDependent, isInitialized, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecializeequals, getBeanClass, getBeanManager, getId, getQualifierInstances, hashCode, isNormalScopedprotected SessionBean(WeldClass<T> type, InternalEjbDescriptor<T> ejbDescriptor, String idSuffix, BeanManagerImpl manager, ServiceRegistry services)
type - The type of the beanmanager - The Bean managerpublic static <T> SessionBean<T> of(InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager, ServiceRegistry services)
T - The typebeanManager - the current managerpublic static <T> SessionBean<T> of(InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager, WeldClass<T> type, ServiceRegistry services)
T - The typebeanManager - the current managertype - the AnnotatedType to useprotected static String createId(String beanType, InternalEjbDescriptor<?> ejbDescriptor)
protected static String createId(String beanType, InternalEjbDescriptor<?> ejbDescriptor, WeldClass<?> type)
public void initialize(BeanDeployerEnvironment environment)
initialize in class AbstractClassBean<T>public void initializeAfterBeanDiscovery()
RIBeaninitializeAfterBeanDiscovery in class AbstractClassBean<T>protected T createInstance(CreationalContext<T> ctx)
protected void initTypes()
initTypes in class AbstractBean<T,Class<T>>protected void initProxyClass()
protected void checkConflictingRoles()
protected void checkScopeAllowed()
protected void preSpecialize(BeanDeployerEnvironment environment)
preSpecialize in class AbstractClassBean<T>protected void specialize(BeanDeployerEnvironment environment)
specialize in class AbstractBean<T,Class<T>>public T create(CreationalContext<T> creationalContext)
creationalContext - the context in which this instance is being createdprotected T applyDecorators(T instance, CreationalContext<T> creationalContext, InjectionPoint originalInjectionPoint)
applyDecorators in class AbstractClassBean<T>public void destroy(T instance, CreationalContext<T> creationalContext)
ContextualCreationalContext.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 boolean isPassivationCapableBean()
isPassivationCapableBean in class RIBean<T>public boolean isPassivationCapableDependency()
isPassivationCapableDependency in class RIBean<T>public InternalEjbDescriptor<T> getEjbDescriptor()
public boolean isClientCanCallRemoveMethods()
public AbstractBean<?,?> getSpecializedBean()
getSpecializedBean in class AbstractBean<T,Class<T>>protected void checkObserverMethods()
public SessionObjectReference createReference()
protected boolean isInterceptionCandidate()
isInterceptionCandidate in class AbstractClassBean<T>protected void registerInterceptors()
public boolean isProxyable()
isProxyable in class RIBean<T>public boolean hasDefaultProducer()
AbstractBeanProducer ( or InjectionTarget). The method returns false if the
producer of the bean was replaced by an extension.hasDefaultProducer in class AbstractBean<T,Class<T>>Copyright © 2016 Seam Framework. All Rights Reserved.