Class ImmutableBeanAttributes<T>

java.lang.Object
org.jboss.weld.bean.attributes.ImmutableBeanAttributes<T>
Type Parameters:
T - the class of the bean instance
All Implemented Interfaces:
jakarta.enterprise.inject.spi.BeanAttributes<T>
Direct Known Subclasses:
AbstractBuiltInBean.BuiltInBeanAttributes

public class ImmutableBeanAttributes<T> extends Object implements jakarta.enterprise.inject.spi.BeanAttributes<T>
Implementation of BeanAttributes used by Weld.
Author:
Jozef Hartinger
  • Constructor Details

    • ImmutableBeanAttributes

      public ImmutableBeanAttributes(Set<Class<? extends Annotation>> stereotypes, boolean alternative, String name, Set<Annotation> qualifiers, Set<Type> types, Class<? extends Annotation> scope)
    • ImmutableBeanAttributes

      public ImmutableBeanAttributes(Set<Annotation> qualifiers, String name, jakarta.enterprise.inject.spi.BeanAttributes<T> attributes)
      Utility constructor used for overriding Bean qualifiers and name for specialization purposes.
  • Method Details

    • getStereotypes

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

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

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object