Module jakarta.cdi
Package jakarta.enterprise.inject.spi
Interface ProcessSyntheticObserverMethod<T,X>
-
- Type Parameters:
T- The type of the event being observedX- The bean type containing the observer method, i.e.ObserverMethod.getBeanClass()
- All Superinterfaces:
ProcessObserverMethod<T,X>
public interface ProcessSyntheticObserverMethod<T,X> extends ProcessObserverMethod<T,X>
The container fires an event of this type for each custom implementation of
ObserverMethodadded throughAfterBeanDiscovery.addObserverMethod(ObserverMethod)orAfterBeanDiscovery.addObserverMethod(), before registering theObserverMethodobject.If any observer method of a
ProcessSyntheticObserverMethodevent 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
- Author:
- Martin Kouba
- See Also:
ObserverMethod
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtensiongetSource()Get the extension instance which added theObserverMethodfor which this event is being fired.-
Methods inherited from interface jakarta.enterprise.inject.spi.ProcessObserverMethod
addDefinitionError, configureObserverMethod, getAnnotatedMethod, getObserverMethod, setObserverMethod, veto
-
-
-
-
Method Detail
-
getSource
Extension getSource()
Get the extension instance which added theObserverMethodfor which this event is being fired.- Returns:
- the extension instance
- Throws:
java.lang.IllegalStateException- if called outside of the observer method invocation
-
-