Class BeanConfiguratorImpl.ConstructedBean

  • 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, OwbBean<T>
    Direct Known Subclasses:
    BeanConfiguratorImpl.ConstructedPrioritizedBean
    Enclosing class:
    BeanConfiguratorImpl<T>

    public class BeanConfiguratorImpl.ConstructedBean
    extends Object
    implements OwbBean<T>, jakarta.enterprise.inject.spi.PassivationCapable
    1:1 with the BeanConfigurator.
    • Constructor Detail

      • ConstructedBean

        public ConstructedBean()
    • Method Detail

      • getTypes

        public Set<Type> getTypes()
        Specified by:
        getTypes in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
      • getInjectionPoints

        public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
        Specified by:
        getInjectionPoints in interface jakarta.enterprise.inject.spi.Bean<T>
      • getQualifiers

        public Set<Annotation> getQualifiers()
        Specified by:
        getQualifiers in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
      • getProducer

        public jakarta.enterprise.inject.spi.Producer<T> getProducer()
        Specified by:
        getProducer in interface OwbBean<T>
        Returns:
        the producer for this bean;
      • getBeanClass

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

        public Class<? extends Annotation> getScope()
        Specified by:
        getScope in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
      • getName

        public String getName()
        Specified by:
        getName in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
      • getReturnType

        public Class<T> getReturnType()
        Description copied from interface: OwbBean
        Returns bean class type
        Specified by:
        getReturnType in interface OwbBean<T>
        Returns:
        bean class type
      • create

        public T create​(jakarta.enterprise.context.spi.CreationalContext<T> context)
        Specified by:
        create in interface jakarta.enterprise.context.spi.Contextual<T>
      • getStereotypes

        public Set<Class<? extends Annotation>> getStereotypes()
        Specified by:
        getStereotypes in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
      • setSpecializedBean

        public void setSpecializedBean​(boolean specialized)
        Description copied from interface: OwbBean
        Set specialized flag.
        Specified by:
        setSpecializedBean in interface OwbBean<T>
        Parameters:
        specialized - flag
      • isAlternative

        public boolean isAlternative()
        Specified by:
        isAlternative in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
      • destroy

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

        public boolean isSpecializedBean()
        Description copied from interface: OwbBean
        Returns true if bean is a specialized bean, false otherwise.
        Specified by:
        isSpecializedBean in interface OwbBean<T>
        Returns:
        true if bean is a specialized bean
      • setEnabled

        public void setEnabled​(boolean enabled)
        Description copied from interface: OwbBean
        Set enableed flag.
        Specified by:
        setEnabled in interface OwbBean<T>
        Parameters:
        enabled - flag
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: OwbBean
        Bean is enabled or not.
        Specified by:
        isEnabled in interface OwbBean<T>
        Returns:
        true if enabled
      • getId

        public String getId()
        Description copied from interface: OwbBean
        Gets id of the bean.
        Specified by:
        getId in interface OwbBean<T>
        Specified by:
        getId in interface jakarta.enterprise.inject.spi.PassivationCapable
        Returns:
        id of the bean
      • isPassivationCapable

        public boolean isPassivationCapable()
        Description copied from interface: OwbBean
        True if passivation capable false otherwise.
        Specified by:
        isPassivationCapable in interface OwbBean<T>
        Returns:
        true if this bean is passivation capable
      • isDependent

        public boolean isDependent()
        Description copied from interface: OwbBean
        This determines if this bean is really a dependent bean, and as such always creats a freshl instance for each InjectionPoint. A BeanManagerBean is e.g. not a dependent bean.
        Specified by:
        isDependent in interface OwbBean<T>
        Returns:
        true if this is a dependent bean