Package com.aspectran.shell.service
Class AspectranShellService
- java.lang.Object
-
- com.aspectran.core.service.AbstractServiceController
-
- com.aspectran.core.service.AbstractCoreService
-
- com.aspectran.core.service.AspectranCoreService
-
- com.aspectran.shell.service.AbstractShellService
-
- com.aspectran.shell.service.AspectranShellService
-
- All Implemented Interfaces:
com.aspectran.core.service.CoreService,com.aspectran.core.service.ServiceController,ShellService
public class AspectranShellService extends AbstractShellService
The Class AspectranShellService.- Since:
- 2016. 1. 18.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AspectranShellServicecreate(java.io.File aspectranConfigFile)Returns a new instance ofAspectranShellService.static AspectranShellServicecreate(java.io.File aspectranConfigFile, Console console)Returns a new instance ofAspectranShellService.voidexecute(CommandLineParser commandLineParser)Executes a Shell Activity.voidexecute(java.lang.String commandLine)Executes a Shell Activity.voidrelease()Stop the service and release all allocated resources.-
Methods inherited from class com.aspectran.core.service.AbstractCoreService
createSchedulerService, destroyActivityContext, determineBasePath, getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, getServiceController, isDerived, isHardReload, isLateStart, joinDerivedService, loadActivityContext, prepare, setActivityContext, setBasePath, setExposals
-
Methods inherited from class com.aspectran.core.service.AbstractServiceController
getLock, getServiceName, isActive, joinDerivedService, pause, pause, resume, setServiceStateListener, start, stop
-
Methods inherited from class com.aspectran.shell.service.AbstractShellService
afterContextLoaded, beforeContextDestroy, getCommandRegistry, getCommands, getConsole, getGreetings, isBusy, isExposable, isVerbose, newSessionAdapter, printGreetings, printHelp, restart, restart, setCommands, setConsole, setGreetings, setVerbose
-
Methods inherited from class com.aspectran.core.service.AspectranCoreService
doPause, doPause, doRestart, doResume, doStart, doStop
-
Methods inherited from interface com.aspectran.core.service.CoreService
getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, getServiceController, isHardReload, isLateStart, joinDerivedService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aspectran.shell.service.ShellService
-
-
-
-
Method Detail
-
execute
public void execute(java.lang.String commandLine)
Description copied from interface:ShellServiceExecutes a Shell Activity.- Parameters:
commandLine- the command
-
execute
public void execute(CommandLineParser commandLineParser)
Description copied from interface:ShellServiceExecutes a Shell Activity.- Parameters:
commandLineParser- the command line parser
-
release
public void release()
Description copied from interface:ShellServiceStop the service and release all allocated resources.
-
create
public static AspectranShellService create(java.io.File aspectranConfigFile)
Returns a new instance ofAspectranShellService.- Parameters:
aspectranConfigFile- the aspectran configuration file- Returns:
- the instance of
AspectranShellService
-
create
public static AspectranShellService create(java.io.File aspectranConfigFile, Console console)
Returns a new instance ofAspectranShellService.- Parameters:
aspectranConfigFile- the aspectran configuration fileconsole- the console- Returns:
- the instance of
AspectranShellService
-
-