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
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
Constructor and Description |
---|
AbstractBean(BeanAttributes<T> attributes,
String idSuffix,
BeanManagerImpl beanManager)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
checkSpecialization()
Validates specialization if this bean specializes another bean.
|
protected abstract void |
checkType() |
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 |
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations
only after all beans have been deployed (e.g.
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
boolean |
isDependent() |
boolean |
isNormalScoped() |
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, getBeanClass, getBeanManager, getQualifierInstances, initialize, isPassivationCapableBean, isPassivationCapableDependency, isProxyable
attributes, equals, getId, hashCode, isNullable, setAttributes, toString, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId
getInjectionPoints
create, destroy
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
public AbstractBean(BeanAttributes<T> attributes, String idSuffix, 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()
RIBean
initializeAfterBeanDiscovery
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 isNormalScoped()
public boolean isSpecializing()
public boolean isProxyRequired()
isProxyRequired
in class RIBean<T>
Copyright © 2013 Seam Framework. All Rights Reserved.