|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.entities.phase.PhaseActionPerformer
public class PhaseActionPerformer
Performs the actions associted with the phase. The actions are performed in the order they are added to the class. Behavior of the class in case of failure of any action can be contrrolled.
Field Summary | |
---|---|
private java.util.ArrayList<PhaseAction> |
actions
Holds the actions to be performed in order. |
private Policy |
policy
Holds the policy of the action performer. |
Constructor Summary | |
---|---|
PhaseActionPerformer(Policy policy)
Creates a new instance of PhaseACtionPerformer. |
Method Summary | |
---|---|
void |
addAction(PhaseAction action)
Adds an action to the list of actions associated with this instance. |
void |
performActions()
Performs the actions taking the policy into consideration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<PhaseAction> actions
private Policy policy
Constructor Detail |
---|
public PhaseActionPerformer(Policy policy)
policy
- The policy of this instance.Method Detail |
---|
public void addAction(PhaseAction action)
action
- The action to add.public void performActions() throws PhaseActionException
PhaseActionException
- If the policy instructs the performer to throw exception on error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |