T
- The type (class) of the beanpublic class SessionBean<T> extends AbstractClassBean<T>
annotatedItem, constructorForEnhancedSubclass, decoratorProxyFactory, enhancedSubclass
alternative, beanManager, name, qualifiers, scope, type, types
BEAN_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() |
Set<Class<? extends Annotation>> |
getStereotypes() |
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, flattenInterceptorBindings, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getWeldAnnotated, hasDecorators, hasInterceptors, initConstructor, initDecorators, initEnhancedSubclass, initInitializerMethods, initInjectableFields, initInterceptionModelForType, initPostConstruct, initPreDestroy, initScope, initType, isSubclassed, setInjectionTarget
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getType, getTypedTypes, getTypes, getWeldInjectionPoints, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecialize
equals, getBeanClass, getBeanManager, getId, hashCode
protected 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()
RIBean
initializeAfterBeanDiscovery
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()
public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes
in interface javax.enterprise.inject.spi.Bean<T>
getStereotypes
in class AbstractBean<T,Class<T>>
protected boolean isInterceptionCandidate()
isInterceptionCandidate
in class AbstractClassBean<T>
protected void registerInterceptors()
public boolean isProxyable()
isProxyable
in class RIBean<T>
Copyright © 2012 Seam Framework. All Rights Reserved.