|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.webbeans.manager.Bean<T>
org.jboss.webbeans.bean.AbstractBean<T,java.lang.Class<T>>
org.jboss.webbeans.bean.AbstractClassBean<T>
org.jboss.webbeans.bean.EnterpriseBean<T>
T - public 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 |
|---|
apiTypes, deploymentType, injectionPoints, manager, name, scopeType, type |
| Constructor Summary | |
|---|---|
EnterpriseBean(java.lang.Class<T> type,
ManagerImpl manager)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
callInitializers(T instance)
Calls all initializers of the bean |
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 |
T |
create()
Creates an instance of the bean |
void |
destroy(T instance)
Destroys an instance of the bean |
AnnotatedMethod<?> |
getRemoveMethod()
|
protected AbstractBean<? extends T,java.lang.Class<T>> |
getSpecializedType()
Gets the specializes type of the bean |
protected void |
init()
Initializes the bean and its metadata |
protected void |
initInjectionPoints()
Initializes the injection points |
protected void |
initRemoveMethod()
Initializes the remvoe method |
protected void |
injectBoundFields(T instance,
Manager manager)
Injects bound fields |
protected void |
injectEjbAndCommonFields()
Injects EJBs and common fields |
void |
postConstruct(T instance)
|
void |
preDestroy(java.lang.Object target)
|
java.lang.String |
toString()
Gets a string representation |
| Methods inherited from class org.jboss.webbeans.bean.AbstractClassBean |
|---|
checkBeanImplementation, checkRequiredTypesImplemented, checkScopeAllowed, getAnnotatedItem, getDefaultDeploymentType, getDefaultName, getInitializerMethods, getInjectableFields, getObserverMethods, getProducerFields, getProducerMethods, initInitializerMethods, initType, toDetailedString |
| Methods inherited from class org.jboss.webbeans.bean.AbstractBean |
|---|
bindDecorators, bindInterceptors, checkDeploymentType, getBindingTypes, getDeclaredBeanType, getDeploymentType, getDeploymentType, getInjectionPoints, getMergedStereotypes, getName, getScopeType, getType, getTypes, initApiTypes, initBindingTypes, initDeploymentType, initName, initPrimitive, initScopeType, isAssignableFrom, isNullable, isPrimitive, isSerializable |
| Methods inherited from class javax.webbeans.manager.Bean |
|---|
getManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EnterpriseBean(java.lang.Class<T> type,
ManagerImpl manager)
type - The type of the beanmanager - The Web Beans manager| Method Detail |
|---|
protected void init()
init in class AbstractClassBean<T>protected void initInjectionPoints()
initInjectionPoints in class AbstractClassBean<T>protected void checkConflictingRoles()
protected void checkEnterpriseScopeAllowed()
protected void initRemoveMethod()
public T create()
create in interface Contextual<T>create in class Bean<T>public void destroy(T instance)
destroy in interface Contextual<T>destroy in class Bean<T>instance - The instanceprotected void callInitializers(T instance)
instance - The bean instanceprotected void injectEjbAndCommonFields()
protected void injectBoundFields(T instance,
Manager manager)
instance - The bean instancemanager - The Web Beans managerprotected AbstractBean<? extends T,java.lang.Class<T>> getSpecializedType()
getSpecializedType in class AbstractBean<T,java.lang.Class<T>>public AnnotatedMethod<?> getRemoveMethod()
public java.lang.String toString()
toString in class AbstractClassBean<T>public void postConstruct(T instance)
public void preDestroy(java.lang.Object target)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||