public interface ProcessBeanAttributes<T>
AnnotatedType
gets scanned by the CDI container and turned
into initial BeanAttributes
. Those BeanAttributes can be modified
by observing this very ProcessBeanAttributes system event.
The modified BeanAttributes will get used to construct the final Bean
.Modifier and Type | Method and Description |
---|---|
void |
addDefinitionError(Throwable t)
Adding definition error.
|
Annotated |
getAnnotated() |
BeanAttributes<T> |
getBeanAttributes() |
void |
setBeanAttributes(BeanAttributes<T> beanAttributes)
Use the given BeanAttributes to later create the
Bean from it. |
void |
veto()
Tell the container it should ignore this Bean.
|
Annotated getAnnotated()
AnnotatedType
for bean classes, AnnotatedMethod
for producer methods and
AnnotatedField
for producer fields.BeanAttributes<T> getBeanAttributes()
Annotated
void setBeanAttributes(BeanAttributes<T> beanAttributes)
Bean
from it.beanAttributes
- void veto()
void addDefinitionError(Throwable t)
t
- throwableCopyright © 2020. All rights reserved.