|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.perfectjpattern.core.behavioral.chainofresponsibility.AbstractHandler<NullRequest>
org.perfectjpattern.core.behavioral.chainofresponsibility.AbstractParameterlessHandler
public abstract class AbstractParameterlessHandler
Abstract reusable implementation of IParameterlessHandler
interface.
IParameterlessHandler,
NullRequest![]() |
![]() |
| Constructor Summary | |
|---|---|
AbstractParameterlessHandler()
Constructs new instance of AbstractParameterlessHandler |
|
AbstractParameterlessHandler(IParameterlessHandler aSuccessor)
Constructs new instance of AbstractParameterlessHandler specifying the Successor Element. |
|
| Method Summary | |
|---|---|
boolean |
canHandle(NullRequest aRequest)
Returns true if this IHandler can handle the given request,
false otherwise. |
void |
handle(NullRequest aRequest)
Handle the given request. |
void |
start()
Triggers execution of the Chain if the target Handler is the first reference, otherwise implements the decision-making regarding forwarding the request to its successor IHandler instance. |
| Methods inherited from class org.perfectjpattern.core.behavioral.chainofresponsibility.AbstractHandler |
|---|
getSuccessor, setChainStrategy, setSuccessor, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.perfectjpattern.core.api.behavioral.chainofresponsibility.IParameterlessHandler |
|---|
handle |
| Methods inherited from interface org.perfectjpattern.core.api.behavioral.chainofresponsibility.IHandler |
|---|
getSuccessor, setChainStrategy, setSuccessor, start |
| Constructor Detail |
|---|
public AbstractParameterlessHandler()
public AbstractParameterlessHandler(IParameterlessHandler aSuccessor)
aSuccessor - The Successor Element.| Method Detail |
|---|
public final void start()
IHandler instance.
start in interface IParameterlessHandler
public boolean canHandle(NullRequest aRequest)
throws IllegalArgumentException
IHandler can handle the given request,
false otherwise.
canHandle in interface IHandler<NullRequest>canHandle in class AbstractHandler<NullRequest>aRequest - Context-specific request to handle.
IHandler can handle the given request,
false otherwise.
IllegalArgumentException - 'aRequest' must not be null.
public final void handle(NullRequest aRequest)
throws IllegalArgumentException
handle in interface IHandler<NullRequest>handle in class AbstractHandler<NullRequest>aRequest - Context-specific request to handle.
IllegalArgumentException - 'aRequest' must not be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||