public final class CommandInvoker extends Object
| Constructor and Description |
|---|
CommandInvoker(PluginRepository pluginRepository,
CommandRepository commandRepository,
Set<IJNRPEEventListener> vListeners)
Builds and initializes the
CommandInvoker object. |
| Modifier and Type | Method and Description |
|---|---|
ReturnValue |
invoke(CommandDefinition cd,
String[] args)
This method executes external commands (plugins) The methods also expands
the $ARG?$ macros.
|
ReturnValue |
invoke(String sCommandName,
String[] args)
This method executes built in commands or builds a CommandDefinition to.
|
public CommandInvoker(PluginRepository pluginRepository, CommandRepository commandRepository, Set<IJNRPEEventListener> vListeners)
CommandInvoker object.pluginRepository - The plugin repository containing all the plugins that must be
used by this invoker.commandRepository - The command repository containing all the commands that must
be used by this invoker.vListeners - All the listenerspublic ReturnValue invoke(String sCommandName, String[] args)
sCommandName - The name of the command, as configured in the server
configuration XMLargs - The arguments to pass to the command as configured in the
server configuration XML (with the $ARG?$ macros)public ReturnValue invoke(CommandDefinition cd, String[] args)
cd - The command definitionargs - The arguments to pass to the command as configured in the
server configuration XML (with the $ARG?$ macros)Copyright © 2013. All Rights Reserved.