Module jakarta.cdi

Interface ProcessBeanAttributes<T>

Type Parameters:
T - The class of the bean

public interface ProcessBeanAttributes<T>

The container fires an event of this type for each enabled bean, interceptor or decorator deployed in a bean archive before registering the Bean object.

Any observer of this event is permitted to wrap and/or replace the BeanAttributes by calling either setBeanAttributes(BeanAttributes) or configureBeanAttributes(). If both methods are called within an observer notification an IllegalStateException is thrown. The container must use the final value of this property, after all observers have been called, to manage instances of the bean.

If any observer method of a ProcessBeanAttributes event throws an exception, the exception is treated as a definition error by the container.

CDI Lite implementations are not required to provide support for Portable Extensions.

Since:
1.1