|
||||||||||
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, bindings, dependentInstancesStore, deploymentType, injectionPoints, manager, name, scopeType, type, types |
Constructor Summary | |
---|---|
protected |
EnterpriseBean(AnnotatedClass<T> type,
ManagerImpl manager,
BeanDeployerEnvironment environment)
Constructor |
Method Summary | ||
---|---|---|
boolean |
canCallRemoveMethods()
|
|
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(CreationalContext<T> creationalContext)
Creates an instance of the bean |
|
SessionObjectReference |
createReference()
|
|
void |
destroy(T instance)
Destroys an instance of the contexual type |
|
InternalEjbDescriptor<T> |
getEjbDescriptor()
|
|
AbstractBean<?,?> |
getSpecializedBean()
|
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
|
protected void |
initProxyClass()
|
|
protected void |
initSerializable()
|
|
protected void |
initTypes()
Initializes the API types |
|
boolean |
isMethodExistsOnTypes(AnnotatedMethod<?> method)
|
|
static
|
of(AnnotatedClass<T> clazz,
ManagerImpl manager,
BeanDeployerEnvironment environment)
Creates a simple, annotation defined Enterprise Web Bean |
|
void |
postConstruct(T instance)
|
|
void |
preDestroy(T instance)
|
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
Validates specialization |
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
|
java.lang.String |
toString()
Gets a string representation |
Methods inherited from class org.jboss.webbeans.bean.AbstractClassBean |
---|
callInitializers, checkBeanImplementation, getAnnotatedItem, getDefaultDeploymentType, getDefaultName, getId, getInitializerMethods, getSuperclasses, initDeploymentType, initInitializerMethods, initInjectionPoints, initScopeType, initType, injectBoundFields |
Methods inherited from class org.jboss.webbeans.bean.AbstractBean |
---|
checkDeploymentType, checkRequiredTypesImplemented, getBindings, getDeploymentType, getDeploymentType, getInjectionPoints, getMergedStereotypes, getName, getScopeType, getType, getTypes, initBindings, initDefaultBindings, initDeploymentTypeFromStereotype, initName, initPrimitive, initProxyable, initScopeTypeFromStereotype, isAssignableFrom, isDependent, isInitialized, isNullable, isPrimitive, isProxyable, isSerializable, isSpecializing, postSpecialize |
Methods inherited from class org.jboss.webbeans.bean.RIBean |
---|
createId, equals, getManager, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected EnterpriseBean(AnnotatedClass<T> type, ManagerImpl manager, BeanDeployerEnvironment environment)
type
- The type of the beanmanager
- The Web Beans managerMethod Detail |
---|
public static <T> EnterpriseBean<T> of(AnnotatedClass<T> clazz, ManagerImpl manager, BeanDeployerEnvironment environment)
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()
checkScopeAllowed
in class AbstractClassBean<T>
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(CreationalContext<T> creationalContext)
creationalContext
- the creational context in which incompletely initialized
contexts may be placed
public void destroy(T instance)
Contextual
instance
- the insance to destroypublic java.lang.String toString()
toString
in class AbstractClassBean<T>
public void postConstruct(T instance)
public void preDestroy(T instance)
protected void initSerializable()
initSerializable
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()
public boolean isMethodExistsOnTypes(AnnotatedMethod<?> method)
public SessionObjectReference createReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |