Package org.jboss.weld.bean.builtin
Class AbstractBuiltInBean<T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.bean.CommonBean<T>
-
- org.jboss.weld.bean.RIBean<T>
-
- org.jboss.weld.bean.builtin.AbstractBuiltInBean<T>
-
- All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>
,javax.enterprise.inject.spi.Bean<T>
,javax.enterprise.inject.spi.BeanAttributes<T>
,javax.enterprise.inject.spi.PassivationCapable
,WeldBean<T>
- Direct Known Subclasses:
AbstractBuiltInMetadataBean
,AbstractDecorableBuiltInBean
,BeanManagerBean
,BeanManagerImplBean
,ContextBean
,ExtensionBean
public abstract class AbstractBuiltInBean<T> extends RIBean<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractBuiltInBean.BuiltInBeanAttributes<T>
-
Field Summary
-
Fields inherited from class org.jboss.weld.bean.RIBean
beanManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBuiltInBean(org.jboss.weld.serialization.spi.BeanIdentifier identifier, BeanManagerImpl beanManager, Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanupAfterBoot()
This method is called after the container is started allowing the bean to release any resources that are only required at boot timeSet<javax.enterprise.inject.spi.InjectionPoint>
getInjectionPoints()
Class<T>
getType()
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)
boolean
isDependentContextOptimizationAllowed()
boolean
isPassivationCapableBean()
boolean
isPassivationCapableDependency()
boolean
isProxyable()
boolean
isProxyRequired()
void
preInitialize()
-
Methods inherited from class org.jboss.weld.bean.RIBean
destroy, getBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isDependent, isNormalScoped, setAttributes
-
Methods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, isNullable, toString, unwrap
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from interface org.jboss.weld.bean.WeldBean
getPriority
-
-
-
-
Constructor Detail
-
AbstractBuiltInBean
protected AbstractBuiltInBean(org.jboss.weld.serialization.spi.BeanIdentifier identifier, BeanManagerImpl beanManager, Class<T> type)
-
-
Method Detail
-
preInitialize
public void preInitialize()
- Specified by:
preInitialize
in classRIBean<T>
-
internalInitialize
public void internalInitialize(BeanDeployerEnvironment environment)
- Specified by:
internalInitialize
in classRIBean<T>
-
cleanupAfterBoot
public void cleanupAfterBoot()
Description copied from class:RIBean
This method is called after the container is started allowing the bean to release any resources that are only required at boot time- Specified by:
cleanupAfterBoot
in classRIBean<T>
-
initializeAfterBeanDiscovery
public void initializeAfterBeanDiscovery()
Description copied from class:RIBean
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)- Specified by:
initializeAfterBeanDiscovery
in classRIBean<T>
-
getInjectionPoints
public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
-
isProxyable
public boolean isProxyable()
- Specified by:
isProxyable
in classRIBean<T>
-
isPassivationCapableBean
public boolean isPassivationCapableBean()
- Specified by:
isPassivationCapableBean
in classRIBean<T>
-
isPassivationCapableDependency
public boolean isPassivationCapableDependency()
- Specified by:
isPassivationCapableDependency
in classRIBean<T>
-
isProxyRequired
public boolean isProxyRequired()
- Specified by:
isProxyRequired
in classRIBean<T>
-
isDependentContextOptimizationAllowed
public boolean isDependentContextOptimizationAllowed()
-
-