public class ForwardingExperimentalObserverMethod<T> extends java.lang.Object implements ExperimentalObserverMethod<T>
ExperimentalObserverMethod.DEFAULT_PRIORITY| Constructor and Description |
|---|
ForwardingExperimentalObserverMethod(ObserverMethod<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
protected ObserverMethod<T> |
delegate() |
boolean |
equals(java.lang.Object obj) |
java.lang.Class<?> |
getBeanClass()
Obtains the class of the type that declares the observer method.
|
java.util.Set<java.lang.annotation.Annotation> |
getObservedQualifiers()
Obtains the set of observed event qualifiers.
|
java.lang.reflect.Type |
getObservedType()
Obtains the observed event type.
|
int |
getPriority()
The priority of this observer method
|
Reception |
getReception()
Obtains the specified
Reception for the observer method. |
TransactionPhase |
getTransactionPhase()
Obtains the specified
TransactionPhase for the observer method. |
int |
hashCode() |
void |
notify(T event)
Calls the observer method, passing the given event object.
|
java.lang.String |
toString() |
public ForwardingExperimentalObserverMethod(ObserverMethod<T> delegate)
protected ObserverMethod<T> delegate()
public java.lang.Class<?> getBeanClass()
ObserverMethodObtains the class of the type that declares the observer method.
getBeanClass in interface ObserverMethod<T>public java.lang.reflect.Type getObservedType()
ObserverMethodgetObservedType in interface ObserverMethod<T>public java.util.Set<java.lang.annotation.Annotation> getObservedQualifiers()
ObserverMethodgetObservedQualifiers in interface ObserverMethod<T>public Reception getReception()
ObserverMethodReception for the observer method. This indicates if the observer is conditional or not.getReception in interface ObserverMethod<T>Receptionpublic TransactionPhase getTransactionPhase()
ObserverMethodTransactionPhase for the observer method.getTransactionPhase in interface ObserverMethod<T>TransactionPhasepublic void notify(T event)
ObserverMethodCalls the observer method, passing the given event object.
The implementation of this method for a custom observer method is responsible for deciding whether to call
the method if the ObserverMethod.getReception() returns Reception.IF_EXISTS.
notify in interface ObserverMethod<T>event - the event objectpublic int getPriority()
ExperimentalObserverMethodgetPriority in interface ExperimentalObserverMethod<T>getPriority in interface Prioritizedpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014. All Rights Reserved.