|
||||||||||
| 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, 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 |
init()
Initializes the bean and its metadata |
|
protected void |
initConstructor()
Initializes the constructor |
|
protected void |
initEjbInjectionPoints()
|
|
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 |
initSpecialization()
|
|
protected void |
initType()
Initializes the bean type |
|
protected void |
injectEjbAndCommonFields(T beanInstance)
Injects EJBs and common fields |
|
boolean |
isSerializable()
Indicates if the bean is serializable |
|
static
|
of(AnnotatedClass<T> clazz,
ManagerImpl manager)
Creates a simple, annotation defined Web Bean |
|
static
|
of(java.lang.Class<T> clazz,
ManagerImpl manager)
Creates a simple, annotation defined Web Bean |
|
protected void |
preCheckSpecialization()
|
|
java.lang.String |
toString()
Gets a string representation |
|
| Methods inherited from class org.jboss.webbeans.bean.AbstractClassBean |
|---|
callInitializers, checkScopeAllowed, equals, getAnnotatedItem, getDefaultDeploymentType, getDefaultName, getInitializerMethods, initDeploymentType, initInitializerMethods, initScopeType, 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 SimpleBean(AnnotatedClass<T> type,
ManagerImpl manager)
type - The type of the beanmanager - The Web Beans manager| Method Detail |
|---|
public static <T> SimpleBean<T> of(java.lang.Class<T> clazz,
ManagerImpl manager)
T - The typeclazz - The classmanager - the current manager
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)
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)
protected void init()
init 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 preCheckSpecialization()
preCheckSpecialization in class AbstractClassBean<T>protected void initSpecialization()
initSpecialization in class AbstractBean<T,java.lang.Class<T>>protected void initConstructor()
protected void initPostConstruct()
protected void initPreDestroy()
protected void initType()
initType in class AbstractClassBean<T>public AnnotatedConstructor<T> getConstructor()
public AnnotatedMethod<?> getPostConstruct()
public AnnotatedMethod<?> getPreDestroy()
public java.lang.String toString()
toString in class AbstractClassBean<T>public boolean isSerializable()
isSerializable in class AbstractBean<T,java.lang.Class<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 | |||||||||