com.ibm.j2ca.extension.commandpattern
Class Interpreter

java.lang.Object
  extended bycom.ibm.j2ca.extension.commandpattern.Interpreter

public class Interpreter
extends java.lang.Object

Interpreter. This class interprets a command structure, and calls "execute" on each command in the structure. If a child command is flagged to be executed before its parent, the interpreter will execute that command before proceeding to the parent command. If any children are marked as "after_parent", those children are executed after their parent command.


Constructor Summary
Interpreter(LogUtils logUtils)
          This is the default constructor for Interpreter
 
Method Summary
 commonj.sdo.DataObject execute(Command parentCommand)
          Execute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpreter

public Interpreter(LogUtils logUtils)
This is the default constructor for Interpreter

Parameters:
logUtils -
Method Detail

execute

public commonj.sdo.DataObject execute(Command parentCommand)
                               throws javax.resource.ResourceException
Execute. This executes the command structure given.

Parameters:
parentCommand - the top command in the structure.
Throws:
javax.resource.ResourceException