|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,java.lang.Class<T>>
org.jboss.weld.bean.AbstractClassBean<T>
org.jboss.weld.bean.ManagedBean<T>
T - The type (class) of the beanpublic class ManagedBean<T>
Represents a simple bean
| Field Summary |
|---|
| Fields inherited from class org.jboss.weld.bean.AbstractClassBean |
|---|
annotatedItem |
| Fields inherited from class org.jboss.weld.bean.AbstractBean |
|---|
bindings, manager, name, scopeType, type, types |
| Fields inherited from class org.jboss.weld.bean.RIBean |
|---|
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR |
| Constructor Summary | |
|---|---|
protected |
ManagedBean(WeldClass<T> type,
java.lang.String idSuffix,
BeanManagerImpl manager)
Constructor |
| Method Summary | ||
|---|---|---|
protected T |
applyInterceptors(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
protected javax.enterprise.inject.spi.InjectionPoint |
attachCorrectInjectionPoint()
|
|
protected void |
checkBeanImplementation()
Validates the bean implementation |
|
protected void |
checkConstructor()
|
|
protected void |
checkType()
Validates the type |
|
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates an instance of the bean |
|
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Destroys an instance of the bean |
|
WeldConstructor<T> |
getConstructor()
Returns the constructor |
|
java.lang.String |
getDescription()
Gets a string representation |
|
protected java.lang.String |
getDescription(java.lang.String beanType)
|
|
ManagedBean<?> |
getSpecializedBean()
|
|
protected void |
initConstructor()
Initializes the constructor |
|
protected void |
initDeclaredInterceptors()
|
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
|
protected boolean |
isInterceptionCandidate()
|
|
static
|
of(WeldClass<T> clazz,
BeanManagerImpl manager)
Creates a simple, annotation defined Web Bean |
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
|
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
|
| Methods inherited from class org.jboss.weld.bean.RIBean |
|---|
equals, getBeanClass, getId, getManager, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ManagedBean(WeldClass<T> type,
java.lang.String idSuffix,
BeanManagerImpl manager)
type - The type of the beanmanager - The Bean manager| Method Detail |
|---|
public static <T> ManagedBean<T> of(WeldClass<T> clazz,
BeanManagerImpl manager)
T - The typeclazz - The classmanager - the current manager
public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
protected javax.enterprise.inject.spi.InjectionPoint attachCorrectInjectionPoint()
public void destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
instance - The instancepublic void initialize(BeanDeployerEnvironment environment)
initialize in class AbstractClassBean<T>protected void checkType()
checkType in class AbstractClassBean<T>protected void checkBeanImplementation()
AbstractClassBean
checkBeanImplementation in class AbstractClassBean<T>protected void checkConstructor()
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()
public WeldConstructor<T> getConstructor()
public java.lang.String getDescription()
getDescription in class RIBean<T>protected java.lang.String getDescription(java.lang.String beanType)
public ManagedBean<?> getSpecializedBean()
getSpecializedBean in class AbstractBean<T,java.lang.Class<T>>protected boolean isInterceptionCandidate()
isInterceptionCandidate in class AbstractClassBean<T>
protected T applyInterceptors(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
protected void initDeclaredInterceptors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||