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

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

public abstract class ForwardingObserverMethod<T>
extends Object
implements ObserverMethod<T>

An implementation of ObserverMethod that forwards all calls to delegate().

Author:
Pete Muir

Constructor Summary
ForwardingObserverMethod()
           
 
Method Summary
protected abstract  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()
           
 Reception getReception()
           
 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 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 ObserverMethod<T>

getObservedQualifiers

public Set<Annotation> getObservedQualifiers()
Specified by:
getObservedQualifiers in interface ObserverMethod<T>

getObservedType

public Type getObservedType()
Specified by:
getObservedType in interface ObserverMethod<T>

getReception

public Reception getReception()
Specified by:
getReception in interface ObserverMethod<T>

getTransactionPhase

public TransactionPhase getTransactionPhase()
Specified by:
getTransactionPhase in interface ObserverMethod<T>

notify

public void notify(T event)
Specified by:
notify in interface 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-2010 Seam Framework. All Rights Reserved.