org.jboss.solder.bean
Class ForwardingObserverMethod<T>

java.lang.Object
  extended by org.jboss.solder.bean.ForwardingObserverMethod<T>
Type Parameters:
T - The event type
All Implemented Interfaces:
javax.enterprise.inject.spi.ObserverMethod<T>

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 Summary
ForwardingObserverMethod()
           
 
Method Summary
protected abstract  javax.enterprise.inject.spi.ObserverMethod<T> delegate()
          All calls to this ObserverMethod instance are forwarded to the delegate unless overridden.
 boolean equals(Object obj)
           
 Class<?> getBeanClass()
           
 Set<Annotation> getObservedQualifiers()
           
 Type getObservedType()
           
 javax.enterprise.event.Reception getReception()
           
 javax.enterprise.event.TransactionPhase getTransactionPhase()
           
 int hashCode()
           
 void notify(T event)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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>

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


Copyright © 2008-2011 Seam Framework. All Rights Reserved.