Package org.jboss.weld.bean
Class RIBean<T>
java.lang.Object
org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
org.jboss.weld.bean.CommonBean<T>
org.jboss.weld.bean.RIBean<T>
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<T>,jakarta.enterprise.inject.spi.Bean<T>,jakarta.enterprise.inject.spi.BeanAttributes<T>,jakarta.enterprise.inject.spi.PassivationCapable,WeldBean<T>
- Direct Known Subclasses:
AbstractBean,AbstractBuiltInBean
public abstract class RIBean<T>
extends CommonBean<T>
implements jakarta.enterprise.inject.spi.PassivationCapable
Abstract base class with functions specific to RI built-in beans
- Author:
- Pete Muir
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRIBean(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, org.jboss.weld.serialization.spi.BeanIdentifier identifier, BeanManagerImpl beanManager) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidThis method is called after the container is started allowing the bean to release any resources that are only required at boot timevoidClass<?>getType()final voidinitialize(BeanDeployerEnvironment environment) Initializes the bean and its metadata.abstract voidIn 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 voidinternalInitialize(BeanDeployerEnvironment environment) booleanbooleanabstract booleanabstract booleanabstract booleanabstract booleanabstract voidvoidsetAttributes(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes) Methods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, toString, unwrapMethods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.Bean
getInjectionPointsMethods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from interface jakarta.enterprise.context.spi.Contextual
createMethods inherited from interface jakarta.enterprise.inject.spi.PassivationCapable
getIdMethods inherited from interface org.jboss.weld.bean.WeldBean
getPriority
-
Field Details
-
beanManager
-
-
Constructor Details
-
RIBean
protected RIBean(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, org.jboss.weld.serialization.spi.BeanIdentifier identifier, BeanManagerImpl beanManager)
-
-
Method Details
-
getBeanManager
-
getType
-
getBeanClass
- Specified by:
getBeanClassin interfacejakarta.enterprise.inject.spi.Bean<T>
-
preInitialize
public abstract void preInitialize() -
initialize
Initializes the bean and its metadata. The method is synchronized and guarded by the RIBean object so that the initialization only occurs once. -
internalInitialize
-
cleanupAfterBoot
public 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 -
initializeAfterBeanDiscovery
public 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)- Parameters:
environment-
-
isDependent
public boolean isDependent() -
isNormalScoped
public boolean isNormalScoped() -
isProxyable
public abstract boolean isProxyable() -
isPassivationCapableBean
public abstract boolean isPassivationCapableBean() -
isPassivationCapableDependency
public abstract boolean isPassivationCapableDependency() -
isProxyRequired
public abstract boolean isProxyRequired() -
getQualifierInstances
-
getContextualInstanceStrategy
-
setAttributes
- Overrides:
setAttributesin classCommonBean<T>
-
destroy
public void destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) - Specified by:
destroyin interfacejakarta.enterprise.context.spi.Contextual<T>
-