|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,Class<T>>
org.jboss.weld.bean.AbstractClassBean<T>
org.jboss.weld.bean.SessionBean<T>
T
- The type (class) of the beanpublic class SessionBean<T>
An enterprise bean representation
Field Summary |
---|
Fields inherited from class org.jboss.weld.bean.AbstractClassBean |
---|
annotatedItem, constructorForEnhancedSubclass, decoratorProxyFactory, enhancedSubclass |
Fields inherited from class org.jboss.weld.bean.AbstractBean |
---|
alternative, beanManager, name, qualifiers, scope, type, types |
Fields inherited from class org.jboss.weld.bean.RIBean |
---|
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR |
Constructor Summary | |
---|---|
protected |
SessionBean(WeldClass<T> type,
InternalEjbDescriptor<T> ejbDescriptor,
String idSuffix,
BeanManagerImpl manager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor |
Method Summary | ||
---|---|---|
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
|
of(InternalEjbDescriptor<T> ejbDescriptor,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Creates a simple, annotation defined Enterprise Web Bean |
|
static
|
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()
|
Methods inherited from class org.jboss.weld.bean.RIBean |
---|
equals, getBeanClass, getBeanManager, getId, getQualifierInstances, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 managerMethod Detail |
---|
public static <T> SessionBean<T> of(InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
T
- The typebeanManager
- the current manager
public 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 use
protected 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 T createInstance(javax.enterprise.context.spi.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(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 String toString()
toString
in class RIBean<T>
public boolean isProxyable()
isProxyable
in class RIBean<T>
public boolean hasDefaultProducer()
AbstractBean
Producer
( or InjectionTarget
). The method returns false if the
producer of the bean was replaced by an extension.
hasDefaultProducer
in class AbstractBean<T,Class<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |