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
  • Constructor Details

    • ForwardingObserverMethod

      public ForwardingObserverMethod()
  • Method Details

    • delegate

      protected abstract javax.enterprise.inject.spi.ObserverMethod<T> delegate()
      All calls to this ObserverMethod instance are forwarded to the delegate unless overridden.
      Returns:
      the delegate ObserverMethod
    • getBeanClass

      public Class<?> getBeanClass()
      Specified by:
      getBeanClass in interface javax.enterprise.inject.spi.ObserverMethod<T>
    • getObservedQualifiers

      public Set<Annotation> getObservedQualifiers()
      Specified by:
      getObservedQualifiers in interface javax.enterprise.inject.spi.ObserverMethod<T>
    • getObservedType

      public Type getObservedType()
      Specified by:
      getObservedType in interface javax.enterprise.inject.spi.ObserverMethod<T>
    • getReception

      public javax.enterprise.event.Reception getReception()
      Specified by:
      getReception in interface javax.enterprise.inject.spi.ObserverMethod<T>
    • getTransactionPhase

      public javax.enterprise.event.TransactionPhase getTransactionPhase()
      Specified by:
      getTransactionPhase in interface javax.enterprise.inject.spi.ObserverMethod<T>
    • notify

      public void notify(T event)
      Specified by:
      notify in interface javax.enterprise.inject.spi.ObserverMethod<T>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object