Class AbstractCoreService

java.lang.Object
com.aspectran.core.service.AbstractServiceController
com.aspectran.core.service.AbstractCoreService
All Implemented Interfaces:
CoreService, ServiceController
Direct Known Subclasses:
AspectranCoreService

public abstract class AbstractCoreService extends AbstractServiceController implements CoreService
The Class AbstractCoreService.
  • Constructor Details

    • AbstractCoreService

      public AbstractCoreService()
    • AbstractCoreService

      public AbstractCoreService(CoreService rootService)
  • Method Details

    • getBasePath

      public String getBasePath()
      Description copied from interface: CoreService
      Returns the base path where the root application is running.
      Specified by:
      getBasePath in interface CoreService
      Returns:
      the base path for the root application
    • setBasePath

      protected void setBasePath(String basePath)
    • isLateStart

      public boolean isLateStart()
      Description copied from interface: CoreService
      Returns whether the service should be started separately late after the root service is started.
      Specified by:
      isLateStart in interface CoreService
      Returns:
      true if the service should start separately late; false otherwise
    • isHardReload

      public boolean isHardReload()
      Description copied from interface: CoreService
      Returns whether to reload all Java classes, resources, and activity context configurations.
      Specified by:
      isHardReload in interface CoreService
      Returns:
      false if only the activity context configuration is reloaded; true if all are reloaded
    • getServiceController

      public ServiceController getServiceController()
      Description copied from interface: CoreService
      Returns the service controller for this service.
      Specified by:
      getServiceController in interface CoreService
      Returns:
      the service controller
    • joinDerivedService

      public void joinDerivedService(@NonNull CoreService coreService)
      Description copied from interface: CoreService
      Add a derived core service. Derived services follow the life cycle of the root service.
      Specified by:
      joinDerivedService in interface CoreService
      Parameters:
      coreService - the core service
    • withdrawDerivedService

      public void withdrawDerivedService(@NonNull CoreService coreService)
      Specified by:
      withdrawDerivedService in interface CoreService
    • leaveFromRootService

      public void leaveFromRootService()
      Specified by:
      leaveFromRootService in interface CoreService
    • isDerived

      public boolean isDerived()
      Description copied from class: AbstractServiceController
      Returns whether this service is derived from another root service.
      Specified by:
      isDerived in interface CoreService
      Specified by:
      isDerived in class AbstractServiceController
      Returns:
      whether this service is derived
    • getAspectranConfig

      public AspectranConfig getAspectranConfig()
      Description copied from interface: CoreService
      Returns the Aspectran configuration parameters used to generate the AspectranService.
      Specified by:
      getAspectranConfig in interface CoreService
      Returns:
      the Aspectran Configuration Parameters
    • setAspectranConfig

      protected void setAspectranConfig(AspectranConfig aspectranConfig)
    • hasActivityContextBuilder

      protected boolean hasActivityContextBuilder()
    • getActivityContextBuilder

      protected ActivityContextBuilder getActivityContextBuilder()
    • setActivityContextBuilder

      protected void setActivityContextBuilder(ActivityContextBuilder activityContextBuilder)
    • getActivityContext

      public ActivityContext getActivityContext()
      Specified by:
      getActivityContext in interface CoreService
      Returns:
      the activity context
    • setActivityContext

      protected void setActivityContext(ActivityContext activityContext)
    • getDefaultActivity

      public Activity getDefaultActivity()
      Specified by:
      getDefaultActivity in interface CoreService
      Returns:
      the default activity
    • hasServiceClassLoader

      public boolean hasServiceClassLoader()
      Specified by:
      hasServiceClassLoader in interface CoreService
    • getServiceClassLoader

      @Nullable public ClassLoader getServiceClassLoader()
      Specified by:
      getServiceClassLoader in interface CoreService
      Returns:
      the ClassLoader used within the service.
    • setServiceClassLoader

      protected void setServiceClassLoader(ClassLoader serviceClassLoader)
    • getAltClassLoader

      public ClassLoader getAltClassLoader()
      Specified by:
      getAltClassLoader in interface CoreService
    • setAltClassLoader

      public void setAltClassLoader(ClassLoader altClassLoader)
    • getSchedulerService

      public SchedulerService getSchedulerService()
      Specified by:
      getSchedulerService in interface CoreService
      Returns:
      the scheduler service
    • createSchedulerService

      protected void createSchedulerService(SchedulerConfig schedulerConfig)
    • checkDirectoryStructure

      protected void checkDirectoryStructure()