Package org.infinispan.cdi.common.util
Class ForwardingObserverMethod<T>
java.lang.Object
org.infinispan.cdi.common.util.ForwardingObserverMethod<T>
- Type Parameters:
T- The event type
- All Implemented Interfaces:
javax.enterprise.inject.spi.ObserverMethod<T>,javax.enterprise.inject.spi.Prioritized
public abstract class ForwardingObserverMethod<T>
extends Object
implements javax.enterprise.inject.spi.ObserverMethod<T>
An implementation of
ObserverMethod that forwards all calls to
delegate().- Author:
- Pete Muir
-
Field Summary
Fields inherited from interface javax.enterprise.inject.spi.ObserverMethod
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract javax.enterprise.inject.spi.ObserverMethod<T>delegate()All calls to thisObserverMethodinstance are forwarded to the delegate unless overridden.booleanClass<?>javax.enterprise.event.Receptionjavax.enterprise.event.TransactionPhaseinthashCode()voidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.enterprise.inject.spi.ObserverMethod
getPriority, isAsync, notify
-
Constructor Details
-
ForwardingObserverMethod
public ForwardingObserverMethod()
-
-
Method Details
-
delegate
All calls to thisObserverMethodinstance are forwarded to the delegate unless overridden.- Returns:
- the delegate
ObserverMethod
-
getBeanClass
- Specified by:
getBeanClassin interfacejavax.enterprise.inject.spi.ObserverMethod<T>
-
getObservedQualifiers
- Specified by:
getObservedQualifiersin interfacejavax.enterprise.inject.spi.ObserverMethod<T>
-
getObservedType
- Specified by:
getObservedTypein interfacejavax.enterprise.inject.spi.ObserverMethod<T>
-
getReception
public javax.enterprise.event.Reception getReception()- Specified by:
getReceptionin interfacejavax.enterprise.inject.spi.ObserverMethod<T>
-
getTransactionPhase
public javax.enterprise.event.TransactionPhase getTransactionPhase()- Specified by:
getTransactionPhasein interfacejavax.enterprise.inject.spi.ObserverMethod<T>
-
notify
- Specified by:
notifyin interfacejavax.enterprise.inject.spi.ObserverMethod<T>
-
equals
-
hashCode
public int hashCode() -
toString
-