|
||||||||||
| 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,java.lang.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 |
| Fields inherited from class org.jboss.weld.bean.AbstractBean |
|---|
bindings, manager, name, scopeType, 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,
java.lang.String idSuffix,
BeanManagerImpl manager)
Constructor |
| Method Summary | ||
|---|---|---|
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 |
|
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates an instance of the bean |
|
org.jboss.weld.ejb.api.SessionObjectReference |
createReference()
|
|
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
java.lang.String |
getDescription()
Gets a string representation |
|
InternalEjbDescriptor<T> |
getEjbDescriptor()
|
|
AbstractBean<?,?> |
getSpecializedBean()
|
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
|
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
|
protected void |
initProxyClass()
|
|
protected void |
initSerializable()
|
|
protected void |
initTypes()
Initializes the API types |
|
boolean |
isClientCanCallRemoveMethods()
|
|
protected boolean |
isInterceptionCandidate()
|
|
boolean |
isMethodExistsOnTypes(WeldMethod<?,?> method)
|
|
boolean |
isSerializable()
|
|
static
|
of(InternalEjbDescriptor<T> ejbDescriptor,
BeanManagerImpl manager)
Creates a simple, annotation defined Enterprise Web Bean |
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
Validates specialization |
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
|
| Methods inherited from class org.jboss.weld.bean.RIBean |
|---|
equals, getBeanClass, getId, getManager, hashCode, toString |
| 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,
java.lang.String idSuffix,
BeanManagerImpl manager)
type - The type of the beanmanager - The Bean manager| Method Detail |
|---|
public static <T> SessionBean<T> of(InternalEjbDescriptor<T> ejbDescriptor,
BeanManagerImpl manager)
T - The typeclazz - The classmanager - the current manager
public void initialize(BeanDeployerEnvironment environment)
initialize in class AbstractClassBean<T>protected void initTypes()
AbstractBean
initTypes in class AbstractBean<T,java.lang.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,java.lang.Class<T>>public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public void destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public java.lang.String getDescription()
getDescription in class RIBean<T>protected void initSerializable()
initSerializable in class AbstractBean<T,java.lang.Class<T>>public boolean isSerializable()
isSerializable in class AbstractBean<T,java.lang.Class<T>>public InternalEjbDescriptor<T> getEjbDescriptor()
public boolean isClientCanCallRemoveMethods()
public AbstractBean<?,?> getSpecializedBean()
getSpecializedBean in class AbstractBean<T,java.lang.Class<T>>protected void checkObserverMethods()
public boolean isMethodExistsOnTypes(WeldMethod<?,?> method)
public org.jboss.weld.ejb.api.SessionObjectReference createReference()
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
getStereotypes in interface javax.enterprise.inject.spi.Bean<T>getStereotypes in class AbstractBean<T,java.lang.Class<T>>protected boolean isInterceptionCandidate()
isInterceptionCandidate in class AbstractClassBean<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||