public class CliDispatcher extends AppServiceBase<CliDispatcher>
Dispatch console command to CLI command handler
Destroyable.Util
Constructor and Description |
---|
CliDispatcher(App app) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
applicationCommands()
Returns a list of application commands in alphabetic order
|
java.util.List<java.lang.String> |
commands(boolean sys,
boolean app)
Returns all commands in alphabetic order
|
CliHandler |
handler(java.lang.String command) |
java.util.List<java.lang.String> |
names(CliHandler handler) |
CliDispatcher |
registerCommandHandler(java.lang.String command,
CommandMethodMetaInfo methodMetaInfo,
CommanderClassMetaInfo classMetaInfo) |
boolean |
registered(java.lang.String command) |
protected void |
releaseResources() |
java.util.List<java.lang.String> |
shortCuts(CliHandler handler) |
java.util.List<java.lang.String> |
systemCommands()
Returns a list of system commands in alphabetic order
|
app, onAppStart, onAppStartAsync
app, me
addSubResource, destroy, isDestroyed, reload, scope
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, isDestroyed, scope
public CliDispatcher(App app)
public CliDispatcher registerCommandHandler(java.lang.String command, CommandMethodMetaInfo methodMetaInfo, CommanderClassMetaInfo classMetaInfo)
public boolean registered(java.lang.String command)
public CliHandler handler(java.lang.String command)
public java.util.List<java.lang.String> systemCommands()
Returns a list of system commands in alphabetic order
public java.util.List<java.lang.String> applicationCommands()
Returns a list of application commands in alphabetic order
public java.util.List<java.lang.String> commands(boolean sys, boolean app)
Returns all commands in alphabetic order
public java.util.List<java.lang.String> names(CliHandler handler)
public java.util.List<java.lang.String> shortCuts(CliHandler handler)
protected void releaseResources()
releaseResources
in class AppServiceBase<CliDispatcher>
Copyright © 2014–2017 ActFramework. All rights reserved.