|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.perfectjpattern.core.behavioral.command.AbstractReceiver<P,R>
public abstract class AbstractReceiver<P,R>
Reusable base abstract implementation of IReceiver
Constructor Summary | |
---|---|
AbstractReceiver()
|
Method Summary | |
---|---|
protected P |
getParameter()
Returns the previously assigned Parameter |
R |
getResult()
Returns result out of executing this IReceiver . |
void |
setParameter(P aParameter)
Sets the input parameter required for the execution of this IReceiver . |
protected void |
setResult(R aResult)
Sets the Result |
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.command.IReceiver |
---|
execute |
Constructor Detail |
---|
public AbstractReceiver()
Method Detail |
---|
public R getResult()
IReceiver
.
getResult
in interface IReceiver<P,R>
IReceiver
.public void setParameter(P aParameter) throws IllegalArgumentException
IReceiver
.
setParameter
in interface IReceiver<P,R>
aParameter
- Parameter required for executing the
IReceiver
.
IllegalArgumentException
- 'aParameter' must not be null.protected P getParameter()
protected void setResult(R aResult)
aResult
- the result to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |