|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.perfectjpattern.core.behavioral.chainofresponsibility.AllHandleStrategy
public final class AllHandleStrategy
Concrete implementation of IChainStrategy
that allows
all IHandler
instances in the Chain to handle the given request.
AllHandleStrategy
is stateless, reentrant and a Singleton
therefore it may not be directly instantiated, neither it may be extended.
Method Summary | |
---|---|
static IChainStrategy |
getInstance()
Returns Singleton instance of AllHandleStrategy . |
void |
process(IHandler<Object> aHandler,
Object aRequest)
Defines the decision-logic regarding handling and forwarding of the requests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IChainStrategy getInstance()
AllHandleStrategy
.
AllHandleStrategy
.public void process(IHandler<Object> aHandler, Object aRequest)
process
in interface IChainStrategy
aHandler
- Chain of Responsibility IHandler instance.aRequest
- Request to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |