Top Description Methods
jakarta.enterprise.inject.spi

public Interface ProcessSyntheticObserverMethod<T, X>

extends ProcessObserverMethod<T, X>
Type Parameters
<T>
The type of the event being observed
<X>
The bean type containing the observer method, i.e. ObserverMethod#getBeanClass()

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

If any observer method of a ProcessSyntheticObserverMethod 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.

Author
Martin Kouba
Since
2.0
See Also
ObserverMethod

Method Summary

Modifier and TypeMethod and Description
public Extension

Returns:

the extension instance
getSource
()

Get the extension instance which added the ObserverMethod for which this event is being fired.

Inherited from jakarta.enterprise.inject.spi.ProcessObserverMethod:
addDefinitionErrorconfigureObserverMethodgetAnnotatedMethodgetObserverMethodsetObserverMethodveto

Method Detail

getSourceback to summary
public Extension getSource()

Get the extension instance which added the ObserverMethod for which this event is being fired.

Returns:Extension

the extension instance

Exceptions
IllegalStateException:
if called outside of the observer method invocation