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.
|
BeanAttributesConfigurator<T> |
configureBeanAttributes() |
Annotated |
getAnnotated() |
BeanAttributes<T> |
getBeanAttributes() |
void |
ignoreFinalMethods()
Usually having a non-static final field with any modifier other than private leads to a
DeploymentException.
|
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()
Annotatedvoid setBeanAttributes(BeanAttributes<T> beanAttributes)
Bean from it.beanAttributes - void veto()
void addDefinitionError(Throwable t)
t - throwablevoid ignoreFinalMethods()
BeanAttributesConfigurator<T> configureBeanAttributes()
Copyright © 2025. All rights reserved.