Package javax.enterprise.inject.spi
Interface ProcessBeanAttributes<T>
-
public interface ProcessBeanAttributes<T>EachAnnotatedTypegets 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 voidaddDefinitionError(java.lang.Throwable t)Adding definition error.AnnotatedgetAnnotated()BeanAttributes<T>getBeanAttributes()voidsetBeanAttributes(BeanAttributes<T> beanAttributes)Use the given BeanAttributes to later create theBeanfrom it.voidveto()Tell the container it should ignore this Bean.
-
-
-
Method Detail
-
getAnnotated
Annotated getAnnotated()
- Returns:
- the
AnnotatedTypefor bean classes,AnnotatedMethodfor producer methods andAnnotatedFieldfor 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 theBeanfrom 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
-
-