|
||||||||||
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,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, constructorForEnhancedSubclass, decoratorProxyFactory, enhancedSubclass |
Fields inherited from class org.jboss.weld.bean.AbstractBean |
---|
alternative, beanManager, name, qualifiers, scope, type, types |
Fields inherited from class org.jboss.weld.bean.RIBean |
---|
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR |
Constructor Summary | |
---|---|
protected |
ManagedBean(WeldClass<T> type,
String idSuffix,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor |
Method Summary | ||
---|---|---|
protected T |
applyInterceptors(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
protected void |
checkBeanImplementation()
Validates the bean implementation |
|
protected void |
checkType()
Validates the type |
|
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates an instance of the bean |
|
protected static String |
createId(String beanType,
WeldClass<?> clazz)
create a more complete id for types that have been added through the SPI to prevent duplicate id's |
|
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> ctx)
|
|
protected static String |
createSimpleId(String beanType,
WeldClass<?> clazz)
|
|
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Destroys an instance of the bean |
|
ManagedBean<?> |
getSpecializedBean()
|
|
boolean |
hasDefaultProducer()
Returns true if the bean uses the default Producer ( or InjectionTarget ). |
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
|
void |
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations only after all beans have been deployed (e.g. |
|
protected boolean |
isInterceptionCandidate()
|
|
boolean |
isPassivationCapableBean()
|
|
boolean |
isPassivationCapableDependency()
|
|
boolean |
isProxyable()
|
|
static
|
of(WeldClass<T> clazz,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Creates a simple, annotation defined Web Bean |
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
|
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
|
String |
toString()
|
Methods inherited from class org.jboss.weld.bean.RIBean |
---|
equals, getBeanClass, getBeanManager, getId, getQualifierInstances, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ManagedBean(WeldClass<T> type, String idSuffix, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
type
- The type of the beanbeanManager
- The Bean managerMethod Detail |
---|
public static <T> ManagedBean<T> of(WeldClass<T> clazz, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
T
- The typeclazz
- The classbeanManager
- the current manager
protected static String createSimpleId(String beanType, WeldClass<?> clazz)
protected static String createId(String beanType, WeldClass<?> clazz)
public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
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 T createInstance(javax.enterprise.context.spi.CreationalContext<T> ctx)
public void initializeAfterBeanDiscovery()
RIBean
initializeAfterBeanDiscovery
in class AbstractClassBean<T>
public boolean isPassivationCapableBean()
isPassivationCapableBean
in class RIBean<T>
public boolean isPassivationCapableDependency()
isPassivationCapableDependency
in class RIBean<T>
protected void checkType()
checkType
in class AbstractBean<T,Class<T>>
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,Class<T>>
public ManagedBean<?> getSpecializedBean()
getSpecializedBean
in class AbstractBean<T,Class<T>>
protected boolean isInterceptionCandidate()
isInterceptionCandidate
in class AbstractClassBean<T>
protected T applyInterceptors(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public String toString()
toString
in class RIBean<T>
public boolean isProxyable()
isProxyable
in class RIBean<T>
public boolean hasDefaultProducer()
AbstractBean
Producer
( or InjectionTarget
). The method returns false if the
producer of the bean was replaced by an extension.
hasDefaultProducer
in class AbstractBean<T,Class<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |