Class ImmutableBeanAttributes<T>

  • Type Parameters:
    T - the class of the bean instance
    All Implemented Interfaces:
    javax.enterprise.inject.spi.BeanAttributes<T>
    Direct Known Subclasses:
    AbstractBuiltInBean.BuiltInBeanAttributes

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

      • ImmutableBeanAttributes

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

      • getStereotypes

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

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

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

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

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

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