|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the workers client typepublic interface ChainWorker<T>
Interface for processors in a Chain of Responsibility.
A chain worker does know an optional successor and is calling its successor
if he is not responsible or unable to do the work for the calling client.
Method Summary | |
---|---|
boolean |
doWork(T client)
The work method called by the client |
ChainWorker<T> |
getSuccessor()
The getter for the successor |
void |
setSuccessor(ChainWorker<T> successor)
The setter for the successor |
ChainWorker<T> |
withSuccessor(ChainWorker<T> successor)
A setter for the successor returning a reference to successor set |
Method Detail |
---|
boolean doWork(T client)
client
- the client to do the work for
void setSuccessor(ChainWorker<T> successor)
successor
- the successor to setChainWorker<T> getSuccessor()
ChainWorker<T> withSuccessor(ChainWorker<T> successor)
successor
- the successor to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |