com.ibm.j2ca.extension.commandpattern
Class CommandManager

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

public class CommandManager
extends java.lang.Object

CommandManager This class produces a structure of command objects based on an input WBIRecord and functionName.


Constructor Summary
CommandManager(CommandFactory commandFactory, java.lang.Object eisConnection, LogUtils logUtils)
          This is the constructor for CommandManager
 
Method Summary
 Command produceCommands(WBIRecord inputRecord, java.lang.String functionName)
          produceCommands This is the method that the adapter writer must call to produce commands.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandManager

public CommandManager(CommandFactory commandFactory,
                      java.lang.Object eisConnection,
                      LogUtils logUtils)
This is the constructor for CommandManager

Parameters:
commandFactory - - an instance of an implementation of CommandFactory
eisConnection - - the connection to the EIS used to execute any commands
logUtils - - logging and tracing
Method Detail

produceCommands

public Command produceCommands(WBIRecord inputRecord,
                               java.lang.String functionName)
                        throws javax.resource.ResourceException
produceCommands This is the method that the adapter writer must call to produce commands. This method will take a WBIRecordImpl and the functionName passed into the adapter and translate it into a command structure.

Parameters:
inputRecord - - this is the input record.
functionName - - this is the function passed to the adapter in the interaction spec.
Returns:
- Returns the top node of a command structure. This structure is passed to the Interpreter for execution.
Throws:
javax.resource.ResourceException