|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.iternum.swlink.action.AbstractAction
com.iternum.swlink.action.DelegateMethodAction
A Action that invokes a delegate
method on the target. This action supports four ways to define a delegate
method
TargetClass.delegateMethod()TargetClass.delegateMethod(Object pSource)TargetClass.delegateMethod(Object pExtraArgs)TargetClass.delegateMethod(Object pSource,
Object pExtraArgs)
| Field Summary | |
static java.lang.String |
PARAM_METHOD_NAME
Constant used for parametrization map. |
static java.lang.String |
PARAM_PASS_EXTRA_ARGS
Constant used for parametrization map. |
static java.lang.String |
PARAM_PASS_SOURCE
Constant used for parametrization map. |
| Constructor Summary | |
DelegateMethodAction()
Default constructor. |
|
DelegateMethodAction(java.lang.String pMethodName,
boolean pPassSource,
boolean pPassExtraArgs,
boolean pReentrant)
|
|
| Method Summary | |
void |
close()
Close this target action and remove its relationships. |
java.lang.String |
getMethodName()
|
boolean |
isPassExtraArgs()
|
boolean |
isPassSource()
|
void |
performAction(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.Object pArgs)
Invokes the method this link refers to. |
void |
setActionParam(java.util.Map pParam)
|
void |
setMethodName(java.lang.String pMethodName)
|
void |
setPassExtraArgs(boolean pPassExtraArgs)
|
void |
setPassSource(boolean pPassSource)
|
| Methods inherited from class com.iternum.swlink.action.AbstractAction |
isReentrant, perform, setReentrant |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PARAM_METHOD_NAME
public static final java.lang.String PARAM_PASS_SOURCE
public static final java.lang.String PARAM_PASS_EXTRA_ARGS
| Constructor Detail |
public DelegateMethodAction()
public DelegateMethodAction(java.lang.String pMethodName,
boolean pPassSource,
boolean pPassExtraArgs,
boolean pReentrant)
pMethodName - The name of the method to invokepPassSource - Whether to use the source as argumentpPassExtraArgs - Whether to use the extraArgs as argumentpReentrant - true if this action is reentrant| Method Detail |
public void performAction(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.Object pArgs)
performAction in class AbstractActionpSource - The sourcepTarget - The targetpArgs - Additional arguments - ignored for this action
LinkExceptionAction.perform(java.lang.Object,
java.lang.Object, java.lang.Object)public void close()
Action
Action.close()public java.lang.String getMethodName()
public void setMethodName(java.lang.String pMethodName)
pMethodName - The methodName to set.public boolean isPassSource()
true if the source of the
invocation is to be passed as an argumentpublic void setPassSource(boolean pPassSource)
pPassSource - true if the source
of the invocation
is to be passed as an argumentpublic boolean isPassExtraArgs()
true if the extra arguments of
the invacation are to be passed on the method call.public void setPassExtraArgs(boolean pPassExtraArgs)
pPassExtraArgs - The passExtraArgs to set.public void setActionParam(java.util.Map pParam)
pParam - A java.util.Map with up to
three entries: A String and two
Boolean with the keys defined as constants
in this class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||