org.edg.data.util
Class CommandClient

java.lang.Object
  |
  +--org.edg.data.util.CommandClient

public class CommandClient
extends java.lang.Object

The executable class that is used by the Main class of each client.

Version:
$Id: CommandClient.java,v 1.20 2004/02/12 16:46:52 jamesc Exp $
Author:
Peter Kunszt

Constructor Summary
CommandClient(java.lang.String[] argv, java.lang.String configResource)
          Create a new command client by explicitly specifying the command factory
 
Method Summary
 boolean execute(java.lang.String configResource)
          Execute the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandClient

public CommandClient(java.lang.String[] argv,
                     java.lang.String configResource)
              throws CommandLineException,
                     InvalidConfigurationException
Create a new command client by explicitly specifying the command factory

Parameters:
argv - the command line
configResource - the resource used to config the factory
Method Detail

execute

public boolean execute(java.lang.String configResource)
                throws DataException
Execute the command. The configuration resource specific to the package needs to be passed in.

Parameters:
configResource - name of the configuration file.
Returns:
true if the command execute correctly
Throws:
DataException