|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.inject.manager.Bean<T>
org.jboss.webbeans.bean.RIBean<T>
org.jboss.webbeans.bean.AbstractBean<T,java.lang.Class<T>>
org.jboss.webbeans.bean.AbstractClassBean<T>
org.jboss.webbeans.bean.EnterpriseBean<T>
T - The type (class) of the beanpublic class EnterpriseBean<T>
An enterprise bean representation
| Field Summary |
|---|
| Fields inherited from class org.jboss.webbeans.bean.AbstractClassBean |
|---|
annotatedItem |
| Fields inherited from class org.jboss.webbeans.bean.AbstractBean |
|---|
_serializable, dependentInstancesStore, deploymentType, injectionPoints, manager, name, scopeType, type, types |
| Constructor Summary | |
|---|---|
protected |
EnterpriseBean(AnnotatedClass<T> type,
ManagerImpl manager)
Constructor |
| Method Summary | ||
|---|---|---|
boolean |
canCallRemoveMethods()
|
|
protected void |
checkConflictingRoles()
Validates for non-conflicting roles |
|
protected void |
checkEnterpriseScopeAllowed()
Check that the scope type is allowed by the stereotypes on the bean and the bean type |
|
protected void |
checkObserverMethods()
If there are any observer methods, they must be static or business methods. |
|
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean |
|
void |
destroy(T instance)
Destroys an instance of the bean |
|
InternalEjbDescriptor<T> |
getEjbDescriptor()
|
|
AbstractBean<?,?> |
getSpecializedBean()
|
|
protected void |
init()
Initializes the bean and its metadata |
|
protected void |
initProxyClass()
|
|
protected void |
initSpecialization()
|
|
protected void |
initTypes()
Initializes the API types |
|
protected void |
injectEjbAndCommonFields()
Injects EJBs and common fields |
|
boolean |
isSerializable()
|
|
static
|
of(AnnotatedClass<T> clazz,
ManagerImpl manager)
|
|
static
|
of(java.lang.Class<T> clazz,
ManagerImpl manager)
Creates a simple, annotation defined Enterprise Web Bean |
|
void |
postConstruct(T instance)
|
|
protected void |
preCheckSpecialization()
Validates specialization |
|
void |
preDestroy(T instance)
|
|
java.lang.String |
toString()
Gets a string representation |
|
| Methods inherited from class org.jboss.webbeans.bean.AbstractClassBean |
|---|
callInitializers, checkBeanImplementation, checkScopeAllowed, equals, getAnnotatedItem, getDefaultDeploymentType, getDefaultName, getInitializerMethods, initDeploymentType, initInitializerMethods, initInjectionPoints, initScopeType, initType, injectBoundFields |
| Methods inherited from class org.jboss.webbeans.bean.RIBean |
|---|
getManager |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected EnterpriseBean(AnnotatedClass<T> type,
ManagerImpl manager)
type - The type of the beanmanager - The Web Beans manager| Method Detail |
|---|
public static <T> EnterpriseBean<T> of(java.lang.Class<T> clazz,
ManagerImpl manager)
T - The typeclazz - The classmanager - the current manager
public static <T> EnterpriseBean<T> of(AnnotatedClass<T> clazz,
ManagerImpl manager)
protected void init()
init 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 checkEnterpriseScopeAllowed()
protected void preCheckSpecialization()
preCheckSpecialization in class AbstractClassBean<T>protected void initSpecialization()
initSpecialization in class AbstractBean<T,java.lang.Class<T>>public T create(CreationalContext<T> creationalContext)
public void destroy(T instance)
instance - The instanceprotected void injectEjbAndCommonFields()
public java.lang.String toString()
toString in class AbstractClassBean<T>public void postConstruct(T instance)
public void preDestroy(T instance)
public boolean isSerializable()
isSerializable in class AbstractBean<T,java.lang.Class<T>>public InternalEjbDescriptor<T> getEjbDescriptor()
public boolean canCallRemoveMethods()
public AbstractBean<?,?> getSpecializedBean()
getSpecializedBean in class AbstractBean<T,java.lang.Class<T>>protected void checkObserverMethods()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||