|
||||||||||
| 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 java.lang.String |
name
|
protected java.util.Set<java.lang.annotation.Annotation> |
qualifiers
|
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
scope
|
protected java.lang.Class<T> |
type
|
protected java.util.Set<java.lang.reflect.Type> |
types
|
| Fields inherited from class org.jboss.weld.bean.RIBean |
|---|
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR |
| Constructor Summary | |
|---|---|
AbstractBean(java.lang.String idSuffix,
BeanManagerImpl beanManager)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
addInjectionPoint(WeldInjectionPoint<?,?> injectionPoint)
|
protected void |
addInjectionPoints(java.lang.Iterable<? extends WeldInjectionPoint<?,?>> injectionPoints)
|
protected void |
checkDelegateInjectionPoints()
|
protected abstract java.lang.String |
getDefaultName()
Gets the default name of the bean |
protected java.util.Set<WeldInjectionPoint<?,?>> |
getDelegateInjectionPoints()
|
protected MergedStereotypes<T,S> |
getMergedStereotypes()
Gets the merged stereotypes of the bean |
java.lang.String |
getName()
Gets the name of the bean |
java.util.Set<WeldInjectionPoint<?,?>> |
getNewInjectionPoints()
|
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Gets the binding types |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Gets the scope type of the bean |
abstract AbstractBean<?,?> |
getSpecializedBean()
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
|
java.lang.Class<T> |
getType()
Gets the type of the bean |
protected static java.util.Set<java.lang.reflect.Type> |
getTypedTypes(java.util.Map<java.lang.Class<?>,java.lang.reflect.Type> typeClosure,
java.lang.Class<?> rawType,
javax.enterprise.inject.Typed typed)
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Gets the API types of the bean |
abstract WeldAnnotated<T,S> |
getWeldAnnotated()
Returns the annotated item the bean represents |
java.util.Set<WeldInjectionPoint<?,?>> |
getWeldInjectionPoints()
|
protected void |
initAlternative()
|
protected void |
initDefaultQualifiers()
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
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 |
isProxyable()
|
boolean |
isSpecializing()
|
protected void |
postSpecialize()
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
| Methods inherited from class org.jboss.weld.bean.RIBean |
|---|
checkType, equals, getBeanClass, getBeanManager, getId, getInjectionPoints, hashCode, initializeAfterBeanDiscovery, isPassivationCapableBean, isPassivationCapableDependency, isProxyRequired, 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 java.util.Set<java.lang.annotation.Annotation> qualifiers
protected java.lang.String name
protected java.lang.Class<? extends java.lang.annotation.Annotation> scope
protected boolean alternative
protected java.lang.Class<T> type
protected java.util.Set<java.lang.reflect.Type> types
protected BeanManagerImpl beanManager
| Constructor Detail |
|---|
public AbstractBean(java.lang.String idSuffix,
BeanManagerImpl beanManager)
beanManager - The Bean manager| Method Detail |
|---|
public void initialize(BeanDeployerEnvironment environment)
initialize in class RIBean<T>protected void initStereotypes()
protected void checkDelegateInjectionPoints()
protected void addInjectionPoint(WeldInjectionPoint<?,?> injectionPoint)
protected void addInjectionPoints(java.lang.Iterable<? extends WeldInjectionPoint<?,?>> injectionPoints)
protected java.util.Set<WeldInjectionPoint<?,?>> getDelegateInjectionPoints()
protected void initTypes()
protected static java.util.Set<java.lang.reflect.Type> getTypedTypes(java.util.Map<java.lang.Class<?>,java.lang.reflect.Type> typeClosure,
java.lang.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 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
org.jboss.weld.bean.BaseBean#getQualifiers()protected abstract java.lang.String getDefaultName()
public abstract AbstractBean<?,?> getSpecializedBean()
getSpecializedBean in class RIBean<T>public java.util.Set<WeldInjectionPoint<?,?>> getWeldInjectionPoints()
getWeldInjectionPoints in class RIBean<T>public java.util.Set<WeldInjectionPoint<?,?>> getNewInjectionPoints()
protected MergedStereotypes<T,S> getMergedStereotypes()
public java.lang.String getName()
org.jboss.weld.bean.BaseBean#getName()public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
org.jboss.weld.bean.BaseBean#getScope()public java.lang.Class<T> getType()
getType in class RIBean<T>public java.util.Set<java.lang.reflect.Type> getTypes()
org.jboss.weld.bean.BaseBean#getTypeClosure()public boolean isNullable()
org.jboss.weld.bean.BaseBean#isNullable()public boolean isPrimitive()
isPrimitive in class RIBean<T>public boolean isProxyable()
isProxyable 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 java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
protected boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||