org.springframework.shell
Class CommandLine

java.lang.Object
  extended by org.springframework.shell.CommandLine

public class CommandLine
extends Object

Encapsulates the list of argument passed to the shell.


Constructor Summary
CommandLine(String[] args, int historySize, String[] shellCommandsToExecute)
          Construct a new CommandLine
 
Method Summary
 String[] getArgs()
          Return the command line arguments
 int getHistorySize()
           
 String[] getShellCommandsToExecute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLine

public CommandLine(String[] args,
                   int historySize,
                   String[] shellCommandsToExecute)
Construct a new CommandLine

Parameters:
args - an array of strings from main(String[] args)
historySize - the size of this history buffer
shellCommandsToExecute - semi-colon delimited list of commands for the shell to execute
Method Detail

getArgs

public String[] getArgs()
Return the command line arguments

Returns:
the command line arguments

getHistorySize

public int getHistorySize()
Returns:
the historySize

getShellCommandsToExecute

public String[] getShellCommandsToExecute()
Returns:
the shellCommandsToExecute