T - the type of beanS - the Class> of the bean typepublic abstract class AbstractBean<T,S> extends RIBean<T>
| Modifier and Type | Field and Description |
|---|---|
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 |
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR| Constructor and Description |
|---|
AbstractBean(java.lang.String idSuffix,
BeanManagerImpl beanManager,
ServiceRegistry services)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInjectionPoint(WeldInjectionPoint<?,?> injectionPoint) |
protected void |
addInjectionPoints(java.lang.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 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
|
protected ServiceRegistry |
getServices() |
abstract AbstractBean<?,?> |
getSpecializedBean() |
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
Obtains the stereotypes
of the bean.
|
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,
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() |
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()
Determines if the bean is an
alternative.
|
boolean |
isDependent() |
protected boolean |
isInitialized() |
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) |
equals, getBeanClass, getBeanManager, getId, getInjectionPoints, getQualifierInstances, hashCode, isNormalScoped, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreate, destroyprotected 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
public AbstractBean(java.lang.String idSuffix,
BeanManagerImpl beanManager,
ServiceRegistry services)
beanManager - The Bean managerpublic void cleanupAfterBoot()
RIBeancleanupAfterBoot in class RIBean<T>public void initialize(BeanDeployerEnvironment environment)
initialize in class RIBean<T>protected void initStereotypes()
protected void checkDelegateInjectionPoints()
public void initializeAfterBeanDiscovery()
RIBeaninitializeAfterBeanDiscovery in class RIBean<T>protected abstract void checkType()
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,
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()
Bean.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()
Bean.getName()public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Bean.getScope()public java.lang.Class<T> getType()
public java.util.Set<java.lang.reflect.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 isAlternative()
Beanpublic boolean isSpecializing()
isSpecializing in class RIBean<T>public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
Beanprotected boolean isInitialized()
public boolean isProxyRequired()
isProxyRequired in class RIBean<T>protected ServiceRegistry getServices()
public abstract boolean hasDefaultProducer()
Producer ( or InjectionTarget). The method returns false if the
producer of the bean was replaced by an extension.Copyright © 2014 Seam Framework. All Rights Reserved.