public interface BeanInfo
Class-based and producer-based beans directly correspond to a declaration in program source code. Synthetic beans don't and are instead defined through other mechanisms, such as extensions.
Modifier and Type | Method and Description |
---|---|
default InterceptorInfo |
asInterceptor()
Returns this bean as an interceptor.
|
ClassInfo |
declaringClass()
Returns the class that declares this bean.
|
DisposerInfo |
disposer()
Returns the disposer method of this producer-based bean.
|
java.util.Collection<InjectionPointInfo> |
injectionPoints()
Returns a collection of this bean's injection points.
|
boolean |
isAlternative()
Returns whether this bean is an alternative.
|
boolean |
isClassBean()
Returns whether this bean is a managed bean, also known as class-based bean.
|
default boolean |
isInterceptor()
Returns whether this bean is an interceptor.
|
boolean |
isProducerField()
Returns whether this bean is defined by a producer field.
|
boolean |
isProducerMethod()
Returns whether this bean is defined by a producer method.
|
boolean |
isSynthetic()
Returns whether this bean is synthetic.
|
java.lang.String |
name()
Returns the bean name of this bean.
|
java.lang.Integer |
priority()
Returns the priority declared on this bean, or
null
if this bean does not declare a priority. |
FieldInfo |
producerField()
Returns the producer field that defines this bean.
|
MethodInfo |
producerMethod()
Returns the producer method that defines this bean.
|
java.util.Collection<AnnotationInfo> |
qualifiers()
Returns a collection of this bean's qualifiers, represented as
AnnotationInfo . |
ScopeInfo |
scope()
Returns the scope of this bean.
|
java.util.Collection<StereotypeInfo> |
stereotypes()
Returns a collection of this bean's stereotypes.
|
java.util.Collection<Type> |
types()
Returns a collection of all types of this bean.
|
java.util.Collection<Type> types()
null
java.util.Collection<AnnotationInfo> qualifiers()
AnnotationInfo
.null
ClassInfo declaringClass()
null
if this bean is synthetic.ClassInfo
for the class that declares this bean, or null
if this bean is syntheticboolean isClassBean()
boolean isProducerMethod()
boolean isProducerField()
boolean isSynthetic()
MethodInfo producerMethod()
null
if this bean is not defined by a producer method.null
if this bean is not defined by a producer methodFieldInfo producerField()
null
if this bean is not defined by a producer field.null
if this bean is not defined by a producer fieldboolean isAlternative()
java.lang.Integer priority()
null
if this bean does not declare a priority. Declaring a priority on an alternative bean makes it an enabled
alternative. Similarly, declaring a priority on an interceptor makes it an enabled interceptor.null
if this bean does not declare a priorityjava.lang.String name()
@Named
annotation.
Returns null
if the bean does not have a name.null
if the bean does not have a nameDisposerInfo disposer()
null
if this bean is not a defined by a producer method or a producer field,
or if this producer-based bean does not have a corresponding disposer method.null
if this bean does not have a disposerjava.util.Collection<StereotypeInfo> stereotypes()
null
java.util.Collection<InjectionPointInfo> injectionPoints()
null
default boolean isInterceptor()
default InterceptorInfo asInterceptor()
null
java.lang.IllegalStateException
- if isInterceptor()
returns false