Package javax.enterprise.inject.spi
Interface ProcessSyntheticBean<X>
- Type Parameters:
X
- The class of the bean
- All Superinterfaces:
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.
- Since:
- 2.0
-
Method Summary
Methods inherited from interface javax.enterprise.inject.spi.ProcessBean
addDefinitionError, getAnnotated, getBean
-
Method Details
-
getSource
Extension getSource()Get the extension instance which added theBean
for which this event is being fired.- Returns:
- the extension instance
- Throws:
IllegalStateException
- if called outside of the observer method invocation
-