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
public class DefaultShellService extends AbstractShellService
Provides an interactive shell that lets you use or control Aspectran directly from the command line.- Since:
- 2016. 1. 18.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultShellService
create(AspectranConfig aspectranConfig, Console console)
Returns a new instance ofDefaultShellService
.Translet
translate(TransletCommandLine transletCommandLine, Console console)
Executes translet.-
Methods inherited from class com.aspectran.shell.service.AbstractShellService
afterContextLoaded, destroySessionManager, getGreetings, initSessionManager, isBusy, isExposable, isVerbose, newSessionAdapter, printGreetings, printHelp, restart, setGreetings, setVerbose
-
Methods inherited from class com.aspectran.core.service.AspectranCoreService
beforeContextDestroy, doPause, doPause, doResume, doStart, doStop
-
Methods inherited from class com.aspectran.core.service.AbstractCoreService
destroyActivityContext, determineBasePath, getActivityContext, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, loadActivityContext, prepare, setActivityContext, setBasePath, setExposals, withdrawDerivedService
-
Methods inherited from class com.aspectran.core.service.AbstractServiceController
clearDerivedService, getLock, getServiceName, isActive, joinDerivedService, pause, pause, restart, resume, setServiceStateListener, start, stop, 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, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, withdrawDerivedService
-
-
-
-
Method Detail
-
translate
public Translet translate(TransletCommandLine transletCommandLine, Console console) throws TransletNotFoundException
Description copied from interface:ShellService
Executes translet.- Parameters:
transletCommandLine
- the translet command lineconsole
- theConsole
instance- Returns:
- the
Translet
instance - Throws:
TransletNotFoundException
-
create
public static DefaultShellService create(AspectranConfig aspectranConfig, Console console)
Returns a new instance ofDefaultShellService
.- Parameters:
aspectranConfig
- the aspectran configurationconsole
- theConsole
instance- Returns:
- the instance of
DefaultShellService
-
-