CoreService
, ServiceController
, ShellService
public abstract class AbstractShellService extends AspectranCoreService implements ShellService
ShellService
implementations.
Created: 2017. 10. 30.
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractShellService() |
Modifier and Type | Method | Description |
---|---|---|
void |
afterContextLoaded() |
This method is executed immediately after the ActivityContext is loaded.
|
void |
beforeContextDestroy() |
This method executed just before the ActivityContext is destroyed.
|
CommandRegistry |
getCommandRegistry() |
|
java.lang.String[] |
getCommands() |
|
Console |
getConsole() |
|
java.lang.String |
getGreetings() |
|
boolean |
isExposable(java.lang.String transletName) |
Checks whether the Translet can be exposed.
|
boolean |
isVerbose() |
Tests if the verbose mode is enabled.
|
SessionAdapter |
newSessionAdapter() |
|
void |
printGreetings() |
Prints welcome message.
|
void |
printHelp() |
Prints help information.
|
protected void |
setCommands(java.lang.String[] commands) |
|
protected void |
setConsole(Console console) |
|
void |
setGreetings(java.lang.String greetings) |
|
void |
setVerbose(boolean verbose) |
Enables or disables the verbose mode.
|
destroyActivityContext, getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, isHardReload, loadActivityContext, pauseSchedulerService, pauseSchedulerService, prepare, resumeSchedulerService, setActivityContext, setBasePath, setExposals, startSchedulerService, stopSchedulerService
getLock, getServiceName, isActive, pause, pause, restart, resume, setServiceStateListener, start, stop
doPause, doPause, doRestart, doResume, doStart, doStop, isDerived
getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, isHardReload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServiceName, isActive, isDerived, pause, pause, restart, resume, setServiceStateListener, start, stop
execute, execute
protected AbstractShellService() throws java.io.IOException
java.io.IOException
public void afterContextLoaded() throws java.lang.Exception
AspectranCoreService
afterContextLoaded
in class AspectranCoreService
java.lang.Exception
- if an error occurspublic void beforeContextDestroy()
AspectranCoreService
beforeContextDestroy
in class AspectranCoreService
public SessionAdapter newSessionAdapter()
newSessionAdapter
in interface ShellService
public Console getConsole()
getConsole
in interface ShellService
protected void setConsole(Console console)
public java.lang.String[] getCommands()
getCommands
in interface ShellService
protected void setCommands(java.lang.String[] commands)
public CommandRegistry getCommandRegistry()
getCommandRegistry
in interface ShellService
public boolean isExposable(java.lang.String transletName)
ShellService
isExposable
in interface ShellService
isExposable
in class AbstractCoreService
transletName
- the name of the Translet to checkpublic boolean isVerbose()
isVerbose
in interface ShellService
public void setVerbose(boolean verbose)
setVerbose
in interface ShellService
verbose
- true to enable the verbose mode; false to disablepublic java.lang.String getGreetings()
getGreetings
in interface ShellService
public void setGreetings(java.lang.String greetings)
setGreetings
in interface ShellService
public void printGreetings()
ShellService
printGreetings
in interface ShellService
public void printHelp()
ShellService
printHelp
in interface ShellService
Copyright © 2008–2018 The Aspectran Project. All rights reserved.