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 ofObserverMethodthat forwards all calls todelegate().- Author:
- Pete Muir
-
-
Constructor Summary
Constructors Constructor Description ForwardingObserverMethod()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract javax.enterprise.inject.spi.ObserverMethod<T>delegate()All calls to thisObserverMethodinstance are forwarded to the delegate unless overridden.booleanequals(Object obj)Class<?>getBeanClass()Set<Annotation>getObservedQualifiers()TypegetObservedType()javax.enterprise.event.ReceptiongetReception()javax.enterprise.event.TransactionPhasegetTransactionPhase()inthashCode()voidnotify(T event)StringtoString()
-
-
-
Method Detail
-
delegate
protected abstract javax.enterprise.inject.spi.ObserverMethod<T> delegate()
All calls to thisObserverMethodinstance are forwarded to the delegate unless overridden.- Returns:
- the delegate
ObserverMethod
-
getBeanClass
public Class<?> getBeanClass()
- Specified by:
getBeanClassin interfacejavax.enterprise.inject.spi.ObserverMethod<T>
-
getObservedQualifiers
public Set<Annotation> getObservedQualifiers()
- Specified by:
getObservedQualifiersin interfacejavax.enterprise.inject.spi.ObserverMethod<T>
-
getObservedType
public Type 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
public void notify(T event)
- Specified by:
notifyin interfacejavax.enterprise.inject.spi.ObserverMethod<T>
-
-