com.iternum.swlink.action
Class AbstractAction
java.lang.Object
com.iternum.swlink.action.AbstractAction
- All Implemented Interfaces:
- Action
- Direct Known Subclasses:
- DelegateMethodAction, PropertySyncAction
- public abstract class AbstractAction
- extends java.lang.Object
- implements Action
Abstract superclass of concrete target actions that provides
support for non reentrant calls.
- Author:
- Karl F. Banke
|
Method Summary |
boolean |
isReentrant()
|
void |
perform(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.Object pArgs)
Handles the reentrancy and forwards execution to performAction. |
protected abstract void |
performAction(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.Object pArgs)
Abstract call that is called from perform. |
void |
setReentrant(boolean pIsReentrant)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAction
public AbstractAction()
- Default Constructor.
perform
public final void perform(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.Object pArgs)
- Handles the reentrancy and forwards execution to performAction.
- Specified by:
perform in interface Action
- Parameters:
pSource - The source of the invocationpTarget - The target of the invocationpArgs - Additional arguments of the invocation
performAction
protected abstract void performAction(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.Object pArgs)
- Abstract call that is called from
perform.
- Parameters:
pSource - The source of the doPerform callpTarget - The target of the doPerform callpArgs - Additional arguments
isReentrant
public final boolean isReentrant()
- Specified by:
isReentrant in interface Action
- Returns:
- Returns
true if this action isReentrant.
setReentrant
public final void setReentrant(boolean pIsReentrant)
- Specified by:
setReentrant in interface Action
- Parameters:
pIsReentrant - The isReentrant to set.