|
||||||||||
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,S>
T
- the type of beanS
- the Class> of the bean typepublic abstract class AbstractBean<T,S>
An abstract bean representation common for all beans
Field Summary | |
---|---|
protected boolean |
alternative
|
protected BeanManagerImpl |
beanManager
|
protected String |
name
|
protected Set<Annotation> |
qualifiers
|
protected Class<? extends Annotation> |
scope
|
protected Class<T> |
type
|
protected Set<Type> |
types
|
Fields inherited from class org.jboss.weld.bean.RIBean |
---|
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR |
Constructor Summary | |
---|---|
AbstractBean(String idSuffix,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor |
Method Summary | |
---|---|
protected void |
addInjectionPoint(WeldInjectionPoint<?,?> injectionPoint)
|
protected void |
addInjectionPoints(Iterable<? extends WeldInjectionPoint<?,?>> injectionPoints)
|
protected void |
checkDelegateInjectionPoints()
|
protected abstract void |
checkType()
|
void |
cleanupAfterBoot()
This method is called after the container is started allowing the bean to release any resources that are only required at boot time |
protected abstract String |
getDefaultName()
Gets the default name of the bean |
protected Set<WeldInjectionPoint<?,?>> |
getDelegateInjectionPoints()
|
protected MergedStereotypes<T,S> |
getMergedStereotypes()
Gets the merged stereotypes of the bean |
String |
getName()
Gets the name of the bean |
Set<WeldInjectionPoint<?,?>> |
getNewInjectionPoints()
|
Set<Annotation> |
getQualifiers()
Gets the binding types |
Class<? extends Annotation> |
getScope()
Gets the scope type of the bean |
protected org.jboss.weld.bootstrap.api.ServiceRegistry |
getServices()
|
abstract AbstractBean<?,?> |
getSpecializedBean()
|
Set<Class<? extends Annotation>> |
getStereotypes()
|
Class<T> |
getType()
Gets the type of the bean |
protected static Set<Type> |
getTypedTypes(Map<Class<?>,Type> typeClosure,
Class<?> rawType,
javax.enterprise.inject.Typed typed)
|
Set<Type> |
getTypes()
Gets the API types of the bean |
abstract WeldAnnotated<T,S> |
getWeldAnnotated()
Returns the annotated item the bean represents |
Set<WeldInjectionPoint<?,?>> |
getWeldInjectionPoints()
|
abstract boolean |
hasDefaultProducer()
Returns true if the bean uses the default Producer ( or InjectionTarget ). |
protected void |
initAlternative()
|
protected void |
initDefaultQualifiers()
|
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 void |
initName()
Initializes the name |
protected void |
initQualifiers()
|
protected abstract void |
initScope()
|
protected boolean |
initScopeFromStereotype()
|
protected void |
initStereotypes()
|
protected void |
initTypes()
|
boolean |
isAlternative()
|
boolean |
isDependent()
|
protected boolean |
isInitialized()
|
boolean |
isNormalScoped()
|
boolean |
isNullable()
Indicates if bean is nullable |
boolean |
isPrimitive()
Indicates if bean type is a primitive |
boolean |
isProxyRequired()
|
boolean |
isSpecializing()
|
protected void |
postSpecialize()
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
Methods inherited from class org.jboss.weld.bean.RIBean |
---|
equals, getBeanClass, getBeanManager, getId, getInjectionPoints, getQualifierInstances, hashCode, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.enterprise.context.spi.Contextual |
---|
create, destroy |
Field Detail |
---|
protected Set<Annotation> qualifiers
protected String name
protected Class<? extends Annotation> scope
protected boolean alternative
protected Class<T> type
protected Set<Type> types
protected BeanManagerImpl beanManager
Constructor Detail |
---|
public AbstractBean(String idSuffix, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
beanManager
- The Bean managerMethod Detail |
---|
public void cleanupAfterBoot()
RIBean
cleanupAfterBoot
in class RIBean<T>
public void initialize(BeanDeployerEnvironment environment)
initialize
in class RIBean<T>
protected void initStereotypes()
protected void checkDelegateInjectionPoints()
public void initializeAfterBeanDiscovery()
RIBean
initializeAfterBeanDiscovery
in class RIBean<T>
protected abstract void checkType()
protected void addInjectionPoint(WeldInjectionPoint<?,?> injectionPoint)
protected void addInjectionPoints(Iterable<? extends WeldInjectionPoint<?,?>> injectionPoints)
protected Set<WeldInjectionPoint<?,?>> getDelegateInjectionPoints()
protected void initTypes()
protected static Set<Type> getTypedTypes(Map<Class<?>,Type> typeClosure, Class<?> rawType, javax.enterprise.inject.Typed typed)
protected void initQualifiers()
protected void initDefaultQualifiers()
protected void initAlternative()
protected void initName()
protected abstract void initScope()
protected boolean initScopeFromStereotype()
protected void postSpecialize()
protected void preSpecialize(BeanDeployerEnvironment environment)
protected void specialize(BeanDeployerEnvironment environment)
public abstract WeldAnnotated<T,S> getWeldAnnotated()
public Set<Annotation> getQualifiers()
Bean.getQualifiers()
protected abstract String getDefaultName()
public abstract AbstractBean<?,?> getSpecializedBean()
getSpecializedBean
in class RIBean<T>
public Set<WeldInjectionPoint<?,?>> getWeldInjectionPoints()
getWeldInjectionPoints
in class RIBean<T>
public Set<WeldInjectionPoint<?,?>> getNewInjectionPoints()
protected MergedStereotypes<T,S> getMergedStereotypes()
public String getName()
Bean.getName()
public Class<? extends Annotation> getScope()
Bean.getScope()
public Class<T> getType()
getType
in class RIBean<T>
public Set<Type> getTypes()
Bean.getTypes()
public boolean isNullable()
Bean.isNullable()
public boolean isPrimitive()
isPrimitive
in class RIBean<T>
public boolean isDependent()
isDependent
in class RIBean<T>
public boolean isNormalScoped()
public boolean isAlternative()
public boolean isSpecializing()
isSpecializing
in class RIBean<T>
public Set<Class<? extends Annotation>> getStereotypes()
protected boolean isInitialized()
public boolean isProxyRequired()
isProxyRequired
in class RIBean<T>
protected org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
public abstract boolean hasDefaultProducer()
Producer
( or InjectionTarget
). The method returns false if the
producer of the bean was replaced by an extension.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |