vishnu.patterns
Class AbstractResponsability<T>

java.lang.Object
  extended by vishnu.patterns.AbstractResponsability<T>
All Implemented Interfaces:
Responsability<T>

public abstract class AbstractResponsability<T>
extends java.lang.Object
implements Responsability<T>

Author:
cesare
 

Constructor Summary
AbstractResponsability()
           
 
Method Summary
 void handle(T task)
           
protected abstract  void handleHere(T task)
           
 boolean handles(T task)
           
 void sucessor(Responsability<T> r)
           
 Responsability<T> sussesor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResponsability

public AbstractResponsability()
Method Detail

handle

public final void handle(T task)
Specified by:
handle in interface Responsability<T>

handleHere

protected abstract void handleHere(T task)

handles

public boolean handles(T task)
Specified by:
handles in interface Responsability<T>

sucessor

public void sucessor(Responsability<T> r)

sussesor

public Responsability<T> sussesor()
Specified by:
sussesor in interface Responsability<T>