T
- The type of the event being observedX
- The bean type containing the observer method, i.e. ObserverMethod.getBeanClass()
public interface ProcessSyntheticObserverMethod<T,X> extends ProcessObserverMethod<T,X>
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.
ObserverMethod
Modifier and Type | Method and Description |
---|---|
Extension |
getSource()
Get the extension instance which added the
ObserverMethod for which this event is being fired. |
addDefinitionError, configureObserverMethod, getAnnotatedMethod, getObserverMethod, setObserverMethod, veto
Extension getSource()
ObserverMethod
for which this event is being fired.IllegalStateException
- if called outside of the observer method invocationCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.