org.objectweb.celtix.configuration
Class AbstractCommandLineConfiguration
java.lang.Object
org.objectweb.celtix.configuration.AbstractCommandLineConfiguration
- All Implemented Interfaces:
- Configuration
public abstract class AbstractCommandLineConfiguration
- extends Object
- implements Configuration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCommandLineConfiguration
protected AbstractCommandLineConfiguration()
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 argumentsconsume
- 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.