Top Description Methods
javax.enterprise.inject.spi

public Interface BeanAttributes<T>

Known Direct Subinterfaces
javax.enterprise.inject.spi.Bean
Type Parameters
<T>
the class of the bean instance
Imports
java.lang.annotation.Annotation, java.lang.reflect.Type, java.util.Set

The BeanAttributes interface exposes the basic attributes of a bean.
Author
Pete Muir
Since
1.1

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the EL name
getName
()

Obtains the EL name of a bean, if it has one.

public Set<Annotation>

Returns:

the qualifiers
getQualifiers
()

Obtains the qualifiers of the bean.

public Class<? extends Annotation>

Returns:

the scope
getScope
()

Obtains the scope of the bean.

public Set<Class<? extends Annotation>>

Returns:

the set of stereotypes
getStereotypes
()

Obtains the stereotypes of the bean.

public Set<Type>

Returns:

the bean types
getTypes
()

Obtains the bean types of the bean.

public boolean

Returns:

true if the bean is an alternative, and false otherwise.
isAlternative
()

Determines if the bean is an alternative.

Method Detail

getNameback to summary
public String getName()

Obtains the EL name of a bean, if it has one.

Returns:String

the EL name

getQualifiersback to summary
public Set<Annotation> getQualifiers()

Obtains the qualifiers of the bean.

Returns:Set<Annotation>

the qualifiers

getScopeback to summary
public Class<? extends Annotation> getScope()

Obtains the scope of the bean.

Returns:Class<? extends Annotation>

the scope

getStereotypesback to summary
public Set<Class<? extends Annotation>> getStereotypes()

Obtains the stereotypes of the bean.

Returns:Set<Class<? extends Annotation>>

the set of stereotypes

getTypesback to summary
public Set<Type> getTypes()

Obtains the bean types of the bean.

Returns:Set<Type>

the bean types

isAlternativeback to summary
public boolean isAlternative()

Determines if the bean is an alternative. A custom implementation of Bean may implement Prioritized in order to be selected for the application. Prioritized#getPriority() determines the priority used to resolve ambiguities.

Returns:boolean

true if the bean is an alternative, and false otherwise.