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:
Contextual<T>,Bean<T>,BeanAttributes<T>,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 classAbstractBuiltInBean.BuiltInBeanAttributes<T>
-
Field Summary
-
Fields inherited from class org.jboss.weld.bean.RIBean
beanManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBuiltInBean(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 voidcleanupAfterBoot()This method is called after the container is started allowing the bean to release any resources that are only required at boot timeSet<InjectionPoint>getInjectionPoints()Obtains theInjectionPointobjects representing injection points of the bean, that will be validated by the container at initialization time.Class<T>getType()voidinitializeAfterBeanDiscovery()In particular cases, the deployer must perform some initialization operations only after all beans have been deployed (e.g.voidinternalInitialize(BeanDeployerEnvironment environment)booleanisDependentContextOptimizationAllowed()booleanisPassivationCapableBean()booleanisPassivationCapableDependency()booleanisProxyable()booleanisProxyRequired()voidpreInitialize()-
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 javax.enterprise.context.spi.Contextual
create
-
Methods inherited from interface javax.enterprise.inject.spi.PassivationCapable
getId
-
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:
preInitializein classRIBean<T>
-
internalInitialize
public void internalInitialize(BeanDeployerEnvironment environment)
- Specified by:
internalInitializein classRIBean<T>
-
cleanupAfterBoot
public void cleanupAfterBoot()
Description copied from class:RIBeanThis method is called after the container is started allowing the bean to release any resources that are only required at boot time- Specified by:
cleanupAfterBootin classRIBean<T>
-
initializeAfterBeanDiscovery
public void initializeAfterBeanDiscovery()
Description copied from class:RIBeanIn 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:
initializeAfterBeanDiscoveryin classRIBean<T>
-
getInjectionPoints
public Set<InjectionPoint> getInjectionPoints()
Description copied from interface:BeanObtains theInjectionPointobjects representing injection points of the bean, that will be validated by the container at initialization time.- Returns:
- the set of injection points of the bean
-
isProxyable
public boolean isProxyable()
- Specified by:
isProxyablein classRIBean<T>
-
isPassivationCapableBean
public boolean isPassivationCapableBean()
- Specified by:
isPassivationCapableBeanin classRIBean<T>
-
isPassivationCapableDependency
public boolean isPassivationCapableDependency()
- Specified by:
isPassivationCapableDependencyin classRIBean<T>
-
isProxyRequired
public boolean isProxyRequired()
- Specified by:
isProxyRequiredin classRIBean<T>
-
isDependentContextOptimizationAllowed
public boolean isDependentContextOptimizationAllowed()
-
-