Package com.aspectran.shell.command
Class DefaultConsoleCommander
- java.lang.Object
-
- com.aspectran.shell.command.DefaultConsoleCommander
-
- All Implemented Interfaces:
ConsoleCommander
- Direct Known Subclasses:
JLineConsoleCommander
public class DefaultConsoleCommander extends java.lang.Object implements ConsoleCommander
The Shell Command Runner.Created: 2017. 6. 3.
-
-
Constructor Summary
Constructors Constructor Description DefaultConsoleCommander(ShellConsole console)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
consoleReady()
CommandRegistry
getCommandRegistry()
<T extends ShellConsole>
TgetConsole()
ShellService
getShellService()
void
perform()
void
prepare(java.lang.String basePath, java.io.File aspectranConfigFile)
void
release()
-
-
-
Constructor Detail
-
DefaultConsoleCommander
public DefaultConsoleCommander(@NonNull ShellConsole console)
-
-
Method Detail
-
getConsole
public <T extends ShellConsole> T getConsole()
- Specified by:
getConsole
in interfaceConsoleCommander
-
getCommandRegistry
public CommandRegistry getCommandRegistry()
- Specified by:
getCommandRegistry
in interfaceConsoleCommander
-
getShellService
public ShellService getShellService()
- Specified by:
getShellService
in interfaceConsoleCommander
-
consoleReady
protected void consoleReady()
-
prepare
public void prepare(@Nullable java.lang.String basePath, java.io.File aspectranConfigFile) throws java.lang.Exception
- Throws:
java.lang.Exception
-
perform
public void perform()
-
release
public void release()
-
-