public class CommandFactory
extends java.lang.Object
Command| Modifier and Type | Method and Description |
|---|---|
Command |
createCommand(java.lang.String commandName,
java.lang.String[] args,
int startingIndex,
GlobalOptions gopt,
java.lang.String workingDir)
Create a CVS command.
|
CommandProvider |
getCommandProvider(java.lang.String name)
Get the provider of a command.
|
CommandProvider[] |
getCommandProviders()
Get the array of all command providers.
|
static CommandFactory |
getDefault()
Get the default instance of CommandFactory.
|
public static CommandFactory getDefault()
public Command createCommand(java.lang.String commandName, java.lang.String[] args, int startingIndex, GlobalOptions gopt, java.lang.String workingDir) throws java.lang.IllegalArgumentException
commandName - The name of the command to createargs - The array of argumentsstartingIndex - The index of the first argument of the command in the arrayworkingDir - The working directoryjava.lang.IllegalArgumentExceptionpublic CommandProvider getCommandProvider(java.lang.String name)
name - The name of the command to get the provider for.public CommandProvider[] getCommandProviders()