Package javax.enterprise.inject.spi
Interface ProcessBeanAttributes<T>
-
public interface ProcessBeanAttributes<T>
EachAnnotatedType
gets scanned by the CDI container and turned into initialBeanAttributes
. Those BeanAttributes can be modified by observing this very ProcessBeanAttributes system event. The modified BeanAttributes will get used to construct the finalBean
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDefinitionError(java.lang.Throwable t)
Adding definition error.Annotated
getAnnotated()
BeanAttributes<T>
getBeanAttributes()
void
setBeanAttributes(BeanAttributes<T> beanAttributes)
Use the given BeanAttributes to later create theBean
from it.void
veto()
Tell the container it should ignore this Bean.
-
-
-
Method Detail
-
getAnnotated
Annotated getAnnotated()
- Returns:
- the
AnnotatedType
for bean classes,AnnotatedMethod
for producer methods andAnnotatedField
for producer fields.
-
getBeanAttributes
BeanAttributes<T> getBeanAttributes()
- Returns:
- the BeanAttributes parsed from the
Annotated
-
setBeanAttributes
void setBeanAttributes(BeanAttributes<T> beanAttributes)
Use the given BeanAttributes to later create theBean
from it.- Parameters:
beanAttributes
-
-
veto
void veto()
Tell the container it should ignore this Bean.
-
addDefinitionError
void addDefinitionError(java.lang.Throwable t)
Adding definition error. Container aborts processing after calling all observers.- Parameters:
t
- throwable
-
-