Celtix User APIs

org.objectweb.celtix.configuration
Class AbstractCommandLineConfiguration

java.lang.Object
  extended by org.objectweb.celtix.configuration.AbstractCommandLineConfiguration
All Implemented Interfaces:
Configuration

public abstract class AbstractCommandLineConfiguration
extends Object
implements Configuration


Constructor Summary
protected AbstractCommandLineConfiguration()
           
 
Method Summary
protected  void addOption(CommandLineOption option)
          Adds an option to the command line configuration.
 Object getObject(String name)
           
protected  void parseCommandLine(String[] args, boolean consume)
          Parses the arguments and initialises the options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCommandLineConfiguration

protected AbstractCommandLineConfiguration()
Method Detail

getObject

public Object getObject(String name)
Specified by:
getObject in interface Configuration

parseCommandLine

protected void parseCommandLine(String[] args,
                                boolean consume)
Parses the arguments and initialises the options.

Parameters:
args - the command line arguments
consume - specifies whether the command line options and their arguments should be removed from the command line after processing.

addOption

protected void addOption(CommandLineOption option)
Adds an option to the command line configuration. Typically invoked in static initializers.

Parameters:
option - the CommandLineOption to add.

Celtix User APIs