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(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
org.jboss.weld.serialization.spi.BeanIdentifier identifier,
BeanManagerImpl beanManager)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
checkSpecialization()
Validates specialization if this bean specializes another bean.
|
protected abstract void |
checkType() |
abstract javax.enterprise.inject.spi.Annotated |
getAnnotated()
Returns the annotated item the bean represents
|
abstract EnhancedAnnotated<T,S> |
getEnhancedAnnotated()
Returns the weld-enhanced annotated item the bean represents.
|
javax.enterprise.inject.spi.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 |
isProxyRequired() |
boolean |
isSpecializing() |
protected void |
postSpecialize() |
void |
preInitialize()
Initializes specialization.
|
protected void |
preSpecialize() |
void |
setProducer(javax.enterprise.inject.spi.Producer<T> producer)
Set a Producer for this bean.
|
protected void |
specialize() |
cleanupAfterBoot, getBeanClass, getBeanManager, getQualifierInstances, initialize, isNormalScoped, isPassivationCapableBean, isPassivationCapableDependency, isProxyable
attributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, toString, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
public AbstractBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes, org.jboss.weld.serialization.spi.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()
RIBean
initializeAfterBeanDiscovery
in class RIBean<T>
protected abstract void checkType()
public void checkSpecialization()
protected void postSpecialize()
protected void preSpecialize()
protected void specialize()
public abstract javax.enterprise.inject.spi.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>
public javax.enterprise.inject.spi.Producer<T> getProducer()
public void setProducer(javax.enterprise.inject.spi.Producer<T> producer)
Copyright © 2016. All rights reserved.