public class ProcessObserverMethodImpl<T,X> extends AbstractDefinitionContainerEvent implements ProcessObserverMethod<T,X>, ExperimentalProcessObserverMethod<T,X>
| Modifier and Type | Method and Description |
|---|---|
ObserverMethodConfigurator<T> |
configureObserverMethod()
Returns a
ObserverMethodConfigurator initialized with the ObserverMethod processed by this event,
to configure a new ObserverMethod that will replace the original one at the end of the observer invocation. |
static <T,X> ObserverMethod<T> |
fire(BeanManagerImpl beanManager,
AnnotatedMethod<X> beanMethod,
ObserverMethod<T> observerMethod) |
AnnotatedMethod<X> |
getAnnotatedMethod()
The
AnnotatedMethod representing the observer method. |
List<Throwable> |
getDefinitionErrors() |
ObserverMethod<T> |
getObserverMethod()
The
ObserverMethod object that will be used by the container to invoke the observer
when a matching event is fired. |
boolean |
isDirty() |
void |
postNotify(Extension extension) |
void |
setObserverMethod(ObserverMethod<T> observerMethod)
Replaces the
ObserverMethod. |
void |
veto()
Forces the container to ignore the observer method.
|
addDefinitionError, firegetActualTypeArguments, getBeanManager, getErrors, getEventType, getRawTypegetReceiver, checkWithinObserverNotification, preNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDefinitionErrorpublic static <T,X> ObserverMethod<T> fire(BeanManagerImpl beanManager, AnnotatedMethod<X> beanMethod, ObserverMethod<T> observerMethod)
public AnnotatedMethod<X> getAnnotatedMethod()
ProcessObserverMethodAnnotatedMethod representing the observer method.getAnnotatedMethod in interface ProcessObserverMethod<T,X>AnnotatedMethod representing the observer methodpublic ObserverMethod<T> getObserverMethod()
ProcessObserverMethodObserverMethod object that will be used by the container to invoke the observer
when a matching event is fired.getObserverMethod in interface ProcessObserverMethod<T,X>ObserverMethod object that will be used by the container to call the
observer methodpublic void setObserverMethod(ObserverMethod<T> observerMethod)
ProcessObserverMethodObserverMethod.setObserverMethod in interface ProcessObserverMethod<T,X>setObserverMethod in interface ExperimentalProcessObserverMethod<T,X>observerMethod - the new ObserverMethod object to usepublic ObserverMethodConfigurator<T> configureObserverMethod()
ProcessObserverMethodObserverMethodConfigurator initialized with the ObserverMethod processed by this event,
to configure a new ObserverMethod that will replace the original one at the end of the observer invocation.
Each call returns the same ObserverMethodConfiguratorconfigureObserverMethod in interface ProcessObserverMethod<T,X>ObserverMethodConfigurator to configure the replacing ObserverMethodpublic void veto()
ProcessObserverMethodveto in interface ProcessObserverMethod<T,X>veto in interface ExperimentalProcessObserverMethod<T,X>public boolean isDirty()
public void postNotify(Extension extension)
postNotify in interface NotificationListenerpostNotify in class ContainerEventCopyright © 2016. All Rights Reserved.