|
||||||||||
| 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.SimpleBean<T>
T - public 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 |
|---|
apiTypes, deploymentType, injectionPoints, manager, name, scopeType, type |
| Constructor Summary | |
|---|---|
SimpleBean(java.lang.Class<T> type,
ManagerImpl manager)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
callInitializers(T instance)
Calls any initializers |
protected void |
callPostConstruct(T instance)
Calls the post-construct method, if any |
protected void |
callPreDestroy(T instance)
Calls the pre-destroy method, if any |
static void |
checkType(java.lang.Class<?> type)
Validates the type |
T |
create()
Creates an instance of the bean |
void |
destroy(T instance)
Destroys an instance of the bean |
AnnotatedConstructor<T> |
getConstructor()
Returns the constructor |
AnnotatedMethod<java.lang.Object> |
getPostConstruct()
Returns the post-construct method |
AnnotatedMethod<java.lang.Object> |
getPreDestroy()
Returns the pre-destroy method |
protected AbstractBean<? extends T,java.lang.Class<T>> |
getSpecializedType()
Returns the specializes type of the bean |
protected void |
init()
Initializes the bean and its metadata |
protected void |
initConstructor()
Initializes the constructor |
protected void |
initInjectionPoints()
Initializes the injection points |
protected void |
initPostConstruct()
Initializes the post-construct method |
protected void |
initPreDestroy()
Initializes the pre-destroy method |
protected void |
injectBoundFields(T instance,
Manager manager)
Injects bound fields |
protected void |
injectEjbAndCommonFields()
Injects EJBs and common fields |
java.lang.String |
toDetailedString()
|
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 |
| 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 SimpleBean(java.lang.Class<T> type,
ManagerImpl manager)
type - The type of the beanmanager - The Web Beans manager| Method Detail |
|---|
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 callPreDestroy(T instance)
instance - The instance to invoke the method onprotected void callPostConstruct(T instance)
instance - The instance to invoke the method onprotected void callInitializers(T instance)
instance - The instance to invoke the initializers onprotected void injectEjbAndCommonFields()
protected void injectBoundFields(T instance,
Manager manager)
instance - The instance to inject intomanager - The Web Beans managerprotected void init()
init in class AbstractClassBean<T>protected void initInjectionPoints()
initInjectionPoints in class AbstractClassBean<T>public static void checkType(java.lang.Class<?> type)
type - The type to validateprotected void initConstructor()
protected void initPostConstruct()
protected void initPreDestroy()
public AnnotatedConstructor<T> getConstructor()
protected AbstractBean<? extends T,java.lang.Class<T>> getSpecializedType()
getSpecializedType in class AbstractBean<T,java.lang.Class<T>>public AnnotatedMethod<java.lang.Object> getPostConstruct()
public AnnotatedMethod<java.lang.Object> getPreDestroy()
public java.lang.String toString()
toString in class AbstractClassBean<T>public java.lang.String toDetailedString()
toDetailedString in class AbstractClassBean<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||