javax.enterprise.inject.spi
T
- the class of the bean instancepublic interface Bean<T> extends Contextual<T>
Represents an enabled bean. This interface defines everything the container needs to manage instances of the bean.
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getBeanClass()
The bean class of the managed bean or session bean or
of the bean that declares the producer method or field.
|
java.util.Set<InjectionPoint> |
getInjectionPoints()
Obtains the
InjectionPoint objects
representing injection points of the bean, that will be validated by the
container at initialization time. |
java.lang.String |
getName()
Obtains the EL name of a bean, if it has one.
|
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Obtains the qualifiers of the bean.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Obtains the scope of the bean.
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
Obtains the stereotypes
of the bean.
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Obtains the bean types of the bean.
|
boolean |
isAlternative()
Determines if the bean is an
alternative.
|
boolean |
isNullable()
Determines if
Contextual.create(CreationalContext)
sometimes return a null value. |
create, destroy
java.util.Set<java.lang.reflect.Type> getTypes()
java.util.Set<java.lang.annotation.Annotation> getQualifiers()
java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
java.lang.String getName()
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
java.lang.Class<?> getBeanClass()
boolean isAlternative()
boolean isNullable()
Contextual.create(CreationalContext)
sometimes return a null value.create()
method may return a null
value, and false otherwisejava.util.Set<InjectionPoint> getInjectionPoints()
InjectionPoint
objects
representing injection points of the bean, that will be validated by the
container at initialization time.