Class DefaultShellService

  • All Implemented Interfaces:
    com.aspectran.core.service.CoreService, com.aspectran.core.service.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​(com.aspectran.core.context.config.AspectranConfig aspectranConfig, Console console)
      Returns a new instance of DefaultShellService.
      com.aspectran.core.activity.Translet translate​(TransletCommandLine transletCommandLine, Console console)
      Executes translet.
      • 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 com.aspectran.core.activity.Translet translate​(TransletCommandLine transletCommandLine,
                                                              Console console)
                                                       throws com.aspectran.core.activity.TransletNotFoundException
        Description copied from interface: ShellService
        Executes translet.
        Parameters:
        transletCommandLine - the translet command line
        console - the Console instance
        Returns:
        the Translet instance
        Throws:
        com.aspectran.core.activity.TransletNotFoundException
      • create

        public static DefaultShellService create​(com.aspectran.core.context.config.AspectranConfig aspectranConfig,
                                                 Console console)
        Returns a new instance of DefaultShellService.
        Parameters:
        aspectranConfig - the aspectran configuration
        console - the Console instance
        Returns:
        the instance of DefaultShellService