Class 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 Detail

      • ForwardingObserverMethod

        public ForwardingObserverMethod()
    • Method Detail

      • 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>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object