com.iternum.swlink.action
Class AbstractAction

java.lang.Object
  extended bycom.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

Constructor Summary
AbstractAction()
          Default Constructor.
 
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
 
Methods inherited from interface com.iternum.swlink.Action
close, setActionParam
 

Constructor Detail

AbstractAction

public AbstractAction()
Default Constructor.

Method Detail

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 invocation
pTarget - The target of the invocation
pArgs - 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 call
pTarget - The target of the doPerform call
pArgs - 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.