|
||||||||||
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.SimpleBean<T>
T
- The type (class) of the beanpublic class SimpleBean<T>
Represents a simple bean
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 |
SimpleBean(AnnotatedClass<T> type,
ManagerImpl manager)
Constructor |
Method Summary | ||
---|---|---|
protected void |
callPostConstruct(T instance)
Calls the post-construct method, if any |
|
protected void |
callPreDestroy(T instance)
Calls the pre-destroy method, if any |
|
protected void |
checkBeanImplementation()
Validates the bean implementation |
|
protected void |
checkType()
Validates the type |
|
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean |
|
void |
destroy(T instance)
Destroys an instance of the bean |
|
AnnotatedConstructor<T> |
getConstructor()
Returns the constructor |
|
AnnotatedMethod<?> |
getPostConstruct()
Returns the post-construct method |
|
AnnotatedMethod<?> |
getPreDestroy()
Returns the pre-destroy method |
|
SimpleBean<?> |
getSpecializedBean()
|
|
protected void |
initConstructor()
Initializes the constructor |
|
protected void |
initEjbInjectionPoints()
|
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
|
protected void |
initInjectionPoints()
Initializes the injection points |
|
protected void |
initPersistenceUnitInjectionPoints()
|
|
protected void |
initPostConstruct()
Initializes the post-construct method |
|
protected void |
initPreDestroy()
Initializes the pre-destroy method |
|
protected void |
initResourceInjectionPoints()
|
|
protected void |
injectEjbAndCommonFields(T beanInstance)
Injects EJBs and common fields |
|
static
|
of(AnnotatedClass<T> clazz,
ManagerImpl manager)
Creates a simple, annotation defined Web Bean |
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
|
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
|
java.lang.String |
toString()
Gets a string representation |
Methods inherited from class org.jboss.webbeans.bean.AbstractClassBean |
---|
callInitializers, checkScopeAllowed, getAnnotatedItem, getDefaultDeploymentType, getDefaultName, getId, getInitializerMethods, getSuperclasses, initDeploymentType, initInitializerMethods, 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, initSerializable, initTypes, 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 SimpleBean(AnnotatedClass<T> type, ManagerImpl manager)
type
- The type of the beanmanager
- The Web Beans managerMethod Detail |
---|
public static <T> SimpleBean<T> of(AnnotatedClass<T> clazz, ManagerImpl manager)
T
- The typeclazz
- The classmanager
- the current manager
public T create(CreationalContext<T> creationalContext)
creationalContext
- the creational context in which incompletely initialized
contexts may be placed
public void destroy(T instance)
instance
- The instanceprotected void callPreDestroy(T instance)
instance
- The instance to invoke the method onprotected void callPostConstruct(T instance)
instance
- The instance to invoke the method onprotected void initEjbInjectionPoints()
protected void initPersistenceUnitInjectionPoints()
protected void initResourceInjectionPoints()
protected void injectEjbAndCommonFields(T beanInstance)
public void initialize(BeanDeployerEnvironment environment)
initialize
in class AbstractClassBean<T>
protected void initInjectionPoints()
initInjectionPoints
in class AbstractClassBean<T>
protected void checkType()
protected void checkBeanImplementation()
AbstractClassBean
checkBeanImplementation
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>>
protected void initConstructor()
protected void initPostConstruct()
protected void initPreDestroy()
public AnnotatedConstructor<T> getConstructor()
public AnnotatedMethod<?> getPostConstruct()
public AnnotatedMethod<?> getPreDestroy()
public java.lang.String toString()
toString
in class AbstractClassBean<T>
public SimpleBean<?> getSpecializedBean()
getSpecializedBean
in class AbstractBean<T,java.lang.Class<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |