GigaSpaces XAP 9.7.2 API

org.openspaces.pu.container.support
Class CommandLineParser

java.lang.Object
  extended by org.openspaces.pu.container.support.CommandLineParser

public abstract class CommandLineParser
extends Object

A simple command line parser transforming a list of string arguments into CommandLineParser.Parameter arguments. The arguments are in the form of -param1 arg1 arg2 -parm2 arg1.

Author:
kimchy

Nested Class Summary
static class CommandLineParser.Parameter
           
 
Constructor Summary
CommandLineParser()
           
 
Method Summary
static CommandLineParser.Parameter[] parse(String[] args)
           
static CommandLineParser.Parameter[] parse(String[] args, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineParser

public CommandLineParser()
Method Detail

parse

public static CommandLineParser.Parameter[] parse(String[] args)
                                           throws IllegalArgumentException
Throws:
IllegalArgumentException

parse

public static CommandLineParser.Parameter[] parse(String[] args,
                                                  int length)
                                           throws IllegalArgumentException
Throws:
IllegalArgumentException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.