Package org.jboss.weld.bean.attributes
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:
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 ofBeanAttributes
used by Weld.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description 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.ImmutableBeanAttributes(Set<Class<? extends Annotation>> stereotypes, boolean alternative, String name, Set<Annotation> qualifiers, Set<Type> types, Class<? extends Annotation> scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Set<Annotation>
getQualifiers()
Class<? extends Annotation>
getScope()
Set<Class<? extends Annotation>>
getStereotypes()
Set<Type>
getTypes()
boolean
isAlternative()
String
toString()
-
-
-
Constructor Detail
-
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, 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 interfacejavax.enterprise.inject.spi.BeanAttributes<T>
-
isAlternative
public boolean isAlternative()
- Specified by:
isAlternative
in interfacejavax.enterprise.inject.spi.BeanAttributes<T>
-
getName
public String getName()
- Specified by:
getName
in interfacejavax.enterprise.inject.spi.BeanAttributes<T>
-
getQualifiers
public Set<Annotation> getQualifiers()
- Specified by:
getQualifiers
in interfacejavax.enterprise.inject.spi.BeanAttributes<T>
-
getTypes
public Set<Type> getTypes()
- Specified by:
getTypes
in interfacejavax.enterprise.inject.spi.BeanAttributes<T>
-
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScope
in interfacejavax.enterprise.inject.spi.BeanAttributes<T>
-
-