uk.co.flamingpenguin.jewel.cli
Class CliFactory

java.lang.Object
  extended by uk.co.flamingpenguin.jewel.cli.CliFactory

Deprecated. please use CliFactory instead

@Deprecated
public abstract class CliFactory
extends Object

Constructs a Cli from an annotated interface definition.

Author:
Tim Wood
See Also:
Option

Constructor Summary
CliFactory()
          Deprecated.  
 
Method Summary
static
<O> Cli<O>
createCli(Class<O> klass)
          Deprecated. Construct a Cli from an annotated interface definition
static
<O> Cli<O>
createCliUsingInstance(O options)
          Deprecated. Construct a Cli from an annotated class
static
<O> O
parseArguments(Class<O> klass, String... arguments)
          Deprecated. Parse arguments from an annotated interface definition
static
<O> O
parseArgumentsUsingInstance(O options, String... arguments)
          Deprecated. Parse arguments from an annotated class instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CliFactory

public CliFactory()
Deprecated. 
Method Detail

createCli

public static <O> Cli<O> createCli(Class<O> klass)
Deprecated. 
Construct a Cli from an annotated interface definition

Type Parameters:
O - The type of the interface that will be used to present the arguments
Parameters:
klass - The annotated interface definition
Returns:
A Cli configured to create instance of klass

createCliUsingInstance

public static <O> Cli<O> createCliUsingInstance(O options)
Deprecated. 
Construct a Cli from an annotated class

Type Parameters:
O - The type of the class used to present the arguments
Parameters:
options - The annotated class
Returns:
A Cli configured to configure the options

parseArguments

public static <O> O parseArguments(Class<O> klass,
                                   String... arguments)
                        throws ArgumentValidationException
Deprecated. 
Parse arguments from an annotated interface definition

Type Parameters:
O - The type of the interface that will be used to present the arguments
Parameters:
klass - The annotated interface definition
arguments -
Returns:
The parsed arguments
Throws:
InvalidArgumentsException
ArgumentValidationException

parseArgumentsUsingInstance

public static <O> O parseArgumentsUsingInstance(O options,
                                                String... arguments)
                                     throws ArgumentValidationException
Deprecated. 
Parse arguments from an annotated class instance

Type Parameters:
O - The type of the class used to present the arguments
Parameters:
klass - The annotated interface definition
arguments -
Returns:
The parsed arguments
Throws:
InvalidArgumentsException
ArgumentValidationException


Copyright © 2006-2012 lexicalscope. All Rights Reserved.