Class 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 Details

  • Constructor Details

    • RIBean

      protected RIBean(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, org.jboss.weld.serialization.spi.BeanIdentifier identifier, BeanManagerImpl beanManager)
  • Method Details

    • getBeanManager

      public BeanManagerImpl getBeanManager()
    • getType

      public abstract Class<T> getType()
    • getBeanClass

      public Class<?> getBeanClass()
      Specified by:
      getBeanClass in interface jakarta.enterprise.inject.spi.Bean<T>
    • preInitialize

      public abstract void preInitialize()
    • initialize

      public final void initialize(BeanDeployerEnvironment environment)
      Initializes the bean and its metadata. The method is synchronized and guarded by the RIBean object so that the initialization only occurs once.
    • internalInitialize

      protected abstract void internalInitialize(BeanDeployerEnvironment environment)
    • 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

      public Set<QualifierInstance> getQualifierInstances()
    • getContextualInstanceStrategy

      public ContextualInstanceStrategy<T> getContextualInstanceStrategy()
    • setAttributes

      public void setAttributes(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes)
      Overrides:
      setAttributes in class CommonBean<T>
    • destroy

      public void destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
      Specified by:
      destroy in interface jakarta.enterprise.context.spi.Contextual<T>