public class ProcessObserverMethodImpl<T,X> extends AbstractDefinitionContainerEvent implements ProcessObserverMethod<T,X>, ExperimentalProcessObserverMethod<T,X>
| Modifier and Type | Method and Description |
|---|---|
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() |
ExperimentalObserverMethod<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 |
setObserverMethod(ObserverMethod<T> observerMethod)
Replaces the observer method.
|
void |
veto()
Forces the container to ignore the observer method.
|
addDefinitionError, firegetActualTypeArguments, getBeanManager, getErrors, getRawTypecheckWithinObserverNotification, getReceiver, postNotify, 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 ExperimentalObserverMethod<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>getObserverMethod in interface ExperimentalProcessObserverMethod<T,X>ObserverMethod object that will be used by the container to call the
observer methodpublic void setObserverMethod(ObserverMethod<T> observerMethod)
ExperimentalProcessObserverMethodsetObserverMethod in interface ExperimentalProcessObserverMethod<T,X>observerMethod - target observer method.public void veto()
ExperimentalProcessObserverMethodveto in interface ExperimentalProcessObserverMethod<T,X>public boolean isDirty()
Copyright © 2015. All Rights Reserved.