Package com.aspectran.shell.command
Class CommandRegistry
- java.lang.Object
-
- com.aspectran.shell.command.CommandRegistry
-
public class CommandRegistry extends java.lang.ObjectCreated: 2017. 10. 25.
-
-
Constructor Summary
Constructors Constructor Description CommandRegistry(ShellService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCommand(java.lang.Class<? extends Command> commandClass)voidaddCommand(java.lang.String... classNames)java.util.Collection<Command>getAllCommands()CommandgetCommand(java.lang.Class<? extends Command> commandClass)CommandgetCommand(java.lang.String commandName)OptionParsergetParser()ShellServicegetService()
-
-
-
Constructor Detail
-
CommandRegistry
public CommandRegistry(ShellService service)
-
-
Method Detail
-
getService
public ShellService getService()
-
getParser
public OptionParser getParser()
-
getCommand
public Command getCommand(java.lang.String commandName)
-
addCommand
public void addCommand(java.lang.String... classNames)
-
addCommand
public void addCommand(java.lang.Class<? extends Command> commandClass)
-
getAllCommands
public java.util.Collection<Command> getAllCommands()
-
-