The container fires an event of this type for each enabled bean, interceptor or decorator deployed in a bean archive, before
registering the javax.enterprise.inject.spi.Bean object.
The event object type depends upon what kind of bean was discovered:
javax.enterprise.inject.spi.ProcessManagedBean.javax.enterprise.inject.spi.ProcessSessionBean.javax.enterprise.inject.spi.ProcessProducerMethod.javax.enterprise.inject.spi.ProcessProducerField.Bean, the container must raise an event of type ProcessSyntheticBean.Resources are considered to be producer fields.
If any observer method of a ProcessBean event throws an exception, the exception is treated as a definition error by
the container.
Bean
| Modifier and Type | Method and Description |
|---|---|
| public void | addDefinitionError(Throwable
The definition error to register as a t)java.lang.ThrowableRegisters a definition error with the container, causing the container to abort deployment after bean discovery is complete. |
| public Annotated | Returns: thejavax.enterprise.inject.spi.AnnotatedType for the bean being registeredReturns the |
| public Bean | Returns: thejavax.enterprise.inject.spi.Bean object about to be registeredReturns the |
| addDefinitionError | back to summary |
|---|---|
| public void addDefinitionError(Throwable t) Registers a definition error with the container, causing the container to abort deployment after bean discovery is complete.
| |
| getAnnotated | back to summary |
|---|---|
| public Annotated getAnnotated() Returns the
If invoked upon a
| |
| getBean | back to summary |
|---|---|
| public Bean Returns the
| |