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 Class<T> |
type |
beanManager| Constructor and Description |
|---|
AbstractBean(BeanAttributes<T> attributes,
BeanIdentifier identifier,
BeanManagerImpl beanManager)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract Annotated |
getAnnotated()
Returns the annotated item the bean represents
|
abstract EnhancedAnnotated<T,S> |
getEnhancedAnnotated()
Returns the weld-enhanced annotated item the bean represents.
|
Producer<T> |
getProducer() |
protected Set<? extends AbstractBean<?,?>> |
getSpecializedBeans() |
Class<T> |
getType()
Gets the type of the bean
|
void |
checkSpecialization()
Validates specialization if this bean specializes another bean.
|
protected abstract void |
checkType() |
void |
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations
only after all beans have been deployed (e.g. for initializing decorators
taking into account the possibility of having custom decorators which are
deployed through portable extensions)
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
boolean |
isDependent() |
boolean |
isProxyRequired() |
boolean |
isSpecializing() |
protected void |
postSpecialize() |
void |
preInitialize()
Initializes specialization.
|
protected void |
preSpecialize() |
void |
setProducer(Producer<T> producer)
Set a Producer for this bean.
|
protected void |
specialize() |
cleanupAfterBoot, destroy, getBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, setAttributesattributes, equals, getId, getIdentifier, hashCode, isNullable, toString, unwrapgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdgetInjectionPointscreategetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativepublic AbstractBean(BeanAttributes<T> attributes, BeanIdentifier identifier, BeanManagerImpl beanManager)
beanManager - The Bean managerpublic void preInitialize()
ProcessBeanAttributes is fired and also after the event
if the BeanAttributes have been altered.preInitialize in class RIBean<T>public void internalInitialize(BeanDeployerEnvironment environment)
internalInitialize in class RIBean<T>public void initializeAfterBeanDiscovery()
RIBeaninitializeAfterBeanDiscovery in class RIBean<T>protected abstract void checkType()
public void checkSpecialization()
protected void postSpecialize()
protected void preSpecialize()
protected void specialize()
public abstract Annotated getAnnotated()
public abstract EnhancedAnnotated<T,S> getEnhancedAnnotated()
IllegalStateException at runtime.IllegalStateException - when invoked at runtimeprotected Set<? extends AbstractBean<?,?>> getSpecializedBeans()
public boolean isDependent()
isDependent in class RIBean<T>public boolean isSpecializing()
public boolean isProxyRequired()
isProxyRequired in class RIBean<T>Copyright © 2016. All Rights Reserved.