CoreService, ServiceController, ShellServicepublic 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, isHardReload, loadActivityContext, pauseSchedulerService, pauseSchedulerService, prepare, resumeSchedulerService, setActivityContext, setBasePath, setExposals, startSchedulerService, stopSchedulerServicegetLock, getServiceName, isActive, pause, pause, restart, resume, setServiceStateListener, start, stopdoPause, doPause, doRestart, doResume, doStart, doStop, isDerivedgetActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, isHardReloadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServiceName, isActive, isDerived, pause, pause, restart, resume, setServiceStateListener, start, stopprotected AbstractShellService()
throws java.io.IOException
java.io.IOExceptionpublic void afterContextLoaded()
throws java.lang.Exception
AspectranCoreServiceafterContextLoaded in class AspectranCoreServicejava.lang.Exception - if an error occurspublic void beforeContextDestroy()
AspectranCoreServicebeforeContextDestroy in class AspectranCoreServicepublic SessionAdapter newSessionAdapter()
newSessionAdapter in interface ShellServicepublic Console getConsole()
getConsole in interface ShellServiceprotected void setConsole(Console console)
public java.lang.String[] getCommands()
getCommands in interface ShellServiceprotected void setCommands(java.lang.String[] commands)
public CommandRegistry getCommandRegistry()
getCommandRegistry in interface ShellServicepublic boolean isExposable(java.lang.String transletName)
ShellServiceisExposable in interface ShellServiceisExposable in class AbstractCoreServicetransletName - the name of the Translet to checkpublic boolean isVerbose()
isVerbose in interface ShellServicepublic void setVerbose(boolean verbose)
setVerbose in interface ShellServiceverbose - true to enable the verbose mode; false to disablepublic java.lang.String getGreetings()
getGreetings in interface ShellServicepublic void setGreetings(java.lang.String greetings)
setGreetings in interface ShellServicepublic void printGreetings()
ShellServiceprintGreetings in interface ShellServicepublic void printHelp()
ShellServiceprintHelp in interface ShellServiceCopyright © 2008–2017 The Aspectran Project. All rights reserved.