Module jakarta.cdi

Interface ProcessSyntheticBean<X>

Type Parameters:
X - The class of the bean
All Superinterfaces:
ProcessBean<X>

public interface ProcessSyntheticBean<X> extends ProcessBean<X>

The container fires an event of this type for each custom bean implementation added through AfterBeanDiscovery.addBean() or AfterBeanDiscovery.addBean(Bean), before registering the Bean object.

If any observer method of a ProcessSyntheticBean 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:
2.0