org.bibalex.daf.entities.phase
Class ReflectionAction

java.lang.Object
  extended by org.bibalex.daf.entities.phase.PhaseAction
      extended by org.bibalex.daf.entities.phase.ReflectionAction

public class ReflectionAction
extends PhaseAction

Responsible for applying the Reflection actions associted with a phase.

Author:
Shehab.Kamal

Field Summary
private  ReflectionDef definition
          Holds the ReflectionDef that will be used when applying the action.
private  int jobID
          The ID of the job.
 
Constructor Summary
ReflectionAction(ReflectionDef definition, int jobID)
          Creates a new instance of ReflectionAction.
 
Method Summary
 void applyAction()
          Applies the action.
The action is calling a static method with a single int parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definition

private ReflectionDef definition
Holds the ReflectionDef that will be used when applying the action.


jobID

private int jobID
The ID of the job.

Constructor Detail

ReflectionAction

public ReflectionAction(ReflectionDef definition,
                        int jobID)
Creates a new instance of ReflectionAction.

Parameters:
definition - The ReflectionDef to be applied.
jobID - The ID of the job to which the reflection action will be applied.
Method Detail

applyAction

public void applyAction()
                 throws PhaseActionException
Applies the action.
The action is calling a static method with a single int parameter.

Specified by:
applyAction in class PhaseAction
Throws:
PhaseActionException - If the action fails.