Interface ProcessBeanAttributes<T>


  • public interface ProcessBeanAttributes<T>
    Each 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.
    • Method Detail

      • setBeanAttributes

        void setBeanAttributes​(BeanAttributes<T> beanAttributes)
        Use the given BeanAttributes to later create the Bean 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