Package com.aspectran.shell.service
Class DefaultShellService
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.DefaultShellService
- All Implemented Interfaces:
CoreService
,ServiceController
,ShellService
Provides an interactive shell that lets you use or control Aspectran directly
from the command line.
- Since:
- 2016. 1. 18.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultShellService
create
(AspectranConfig aspectranConfig, ShellConsole console) Returns a new instance ofDefaultShellService
.translate
(TransletCommandLine transletCommandLine) Executes translet.Methods inherited from class com.aspectran.shell.service.AbstractShellService
afterContextLoaded, createSessionManager, destroySessionManager, getConsole, getGreetings, isBusy, isExposable, isVerbose, newSessionAdapter, printGreetings, printHelp, restart, setGreetings, setVerbose
Methods inherited from class com.aspectran.core.service.AspectranCoreService
beforeContextDestroy, buildActivityContext, configure, configure, destroyActivityContext, doPause, doPause, doResume, doStart, doStop, start, stop
Methods inherited from class com.aspectran.core.service.AbstractCoreService
checkDirectoryStructure, createSchedulerService, getActivityContext, getActivityContextBuilder, getAltClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceClassLoader, getServiceController, hasActivityContextBuilder, hasServiceClassLoader, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, setActivityContext, setActivityContextBuilder, setAltClassLoader, setAspectranConfig, setBasePath, setServiceClassLoader, withdrawDerivedService
Methods inherited from class com.aspectran.core.service.AbstractServiceController
clearDerivedService, getLock, getRootService, getServiceName, isActive, joinDerivedService, pause, pause, restart, resume, setExposals, setRootService, setServiceStateListener, withdrawDerivedService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aspectran.core.service.CoreService
getActivityContext, getAltClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceClassLoader, getServiceController, hasServiceClassLoader, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, withdrawDerivedService
-
Method Details
-
translate
Description copied from interface:ShellService
Executes translet.- Parameters:
transletCommandLine
- the translet command line- Returns:
- the
Translet
instance - Throws:
TransletNotFoundException
-
create
@NonNull public static DefaultShellService create(@NonNull AspectranConfig aspectranConfig, ShellConsole console) Returns a new instance ofDefaultShellService
.- Parameters:
aspectranConfig
- the aspectran configurationconsole
- theConsole
instance- Returns:
- the instance of
DefaultShellService
-