Rio Project 4.2 API Documentation



org.rioproject.tools.cli
Class CLI.OptionHandlerDesc

java.lang.Object
  extended by org.rioproject.tools.cli.CLI.OptionHandlerDesc
Enclosing class:
CLI

public static class CLI.OptionHandlerDesc
extends Object

Command line option handler descriptor


Constructor Summary
CLI.OptionHandlerDesc(String name, String optionHandlerClass)
          Create an OptionHandlerDesc
 
Method Summary
 String getName()
           
 OptionHandler getOptionHandler()
          Get the OptionHandler
 String toString()
          String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLI.OptionHandlerDesc

public CLI.OptionHandlerDesc(String name,
                             String optionHandlerClass)
Create an OptionHandlerDesc

Parameters:
name - The name of the option, must not be null
optionHandlerClass - The OptionHandler classname. This class will be instantiated using a zero-arg constructor. This parameter must not be null
Method Detail

getName

public String getName()
Returns:
The name

getOptionHandler

public OptionHandler getOptionHandler()
Get the OptionHandler

Returns:
OptionHandler An instance of the OptionHandler. A new instance is created each time. If an exception is encountered creating the OptionHandler a null is returned

toString

public String toString()
String representation

Overrides:
toString in class Object

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.