public abstract class RIBean<T> extends CommonBean<T> implements PassivationCapable
| Modifier and Type | Field and Description |
|---|---|
protected BeanManagerImpl |
beanManager |
| Modifier | Constructor and Description |
|---|---|
protected |
RIBean(BeanAttributes<T> attributes,
BeanIdentifier identifier,
BeanManagerImpl beanManager) |
| Modifier and Type | Method and Description |
|---|---|
abstract 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
|
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroy an instance of the contextual type.
|
Class<?> |
getBeanClass()
The bean class of the managed bean or session bean or of the bean that declares the producer method or
field.
|
BeanManagerImpl |
getBeanManager() |
ContextualInstanceStrategy<T> |
getContextualInstanceStrategy() |
Set<QualifierInstance> |
getQualifierInstances() |
abstract Class<T> |
getType() |
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata.
|
abstract 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)
|
protected abstract void |
internalInitialize(BeanDeployerEnvironment environment) |
boolean |
isDependent() |
boolean |
isNormalScoped() |
abstract boolean |
isPassivationCapableBean() |
abstract boolean |
isPassivationCapableDependency() |
abstract boolean |
isProxyable() |
abstract boolean |
isProxyRequired() |
abstract void |
preInitialize() |
void |
setAttributes(BeanAttributes<T> attributes) |
attributes, equals, getId, getIdentifier, hashCode, isNullable, toString, unwrapgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdgetInjectionPointscreategetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeprotected final BeanManagerImpl beanManager
protected RIBean(BeanAttributes<T> attributes, BeanIdentifier identifier, BeanManagerImpl beanManager)
public BeanManagerImpl getBeanManager()
public Class<?> getBeanClass()
BeangetBeanClass in interface Bean<T>public abstract void preInitialize()
public final void initialize(BeanDeployerEnvironment environment)
protected abstract void internalInitialize(BeanDeployerEnvironment environment)
public abstract void cleanupAfterBoot()
public abstract void initializeAfterBeanDiscovery()
environment - public boolean isDependent()
public boolean isNormalScoped()
public abstract boolean isProxyable()
public abstract boolean isPassivationCapableBean()
public abstract boolean isPassivationCapableDependency()
public abstract boolean isProxyRequired()
public Set<QualifierInstance> getQualifierInstances()
public ContextualInstanceStrategy<T> getContextualInstanceStrategy()
public void setAttributes(BeanAttributes<T> attributes)
setAttributes in class CommonBean<T>public void destroy(T instance, CreationalContext<T> creationalContext)
ContextualCreationalContext.release() to allow the container to destroy dependent objects of
the contextual instance.destroy in interface Contextual<T>instance - the contextual instance to destroycreationalContext - the context in which this instance was createdCopyright © 2016. All Rights Reserved.