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,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
applyDecorators(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext,
javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint) |
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(javax.enterprise.context.spi.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(javax.enterprise.context.spi.CreationalContext<T> ctx) |
org.jboss.weld.ejb.api.SessionObjectReference |
createReference() |
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
InternalEjbDescriptor<T> |
getEjbDescriptor() |
AbstractBean<?,?> |
getSpecializedBean() |
boolean |
hasDefaultProducer()
Returns true if the bean uses the default
Producer ( or InjectionTarget). |
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.
|
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,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Creates a simple, annotation defined Enterprise Web Bean
|
static <T> SessionBean<T> |
of(InternalEjbDescriptor<T> ejbDescriptor,
BeanManagerImpl beanManager,
WeldClass<T> type,
org.jboss.weld.bootstrap.api.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() |
checkBeanImplementation, checkConstructor, createEnhancedSubclass, defaultPostConstruct, defaultPreDestroy, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getWeldAnnotated, hasDecorators, hasInterceptors, initAfterInterceptorsAndDecoratorsInitialized, initConstructor, initDecorators, initEnhancedSubclass, initInitializerMethods, initInjectableFields, initInterceptorsIfNeeded, initPostConstruct, initPreDestroy, initScope, initType, isSubclassed, setInjectionTargetaddInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, 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, org.jboss.weld.bootstrap.api.ServiceRegistry services)
type - The type of the beanmanager - The Bean managerpublic static <T> SessionBean<T> of(InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
T - The typebeanManager - the current managerpublic static <T> SessionBean<T> of(InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager, WeldClass<T> type, org.jboss.weld.bootstrap.api.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 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(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
protected T applyDecorators(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext, javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint)
applyDecorators in class AbstractClassBean<T>public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
protected 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 org.jboss.weld.ejb.api.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 © 2014 Seam Framework. All Rights Reserved.