Package com.aspectran.core.service
Class AbstractCoreService
java.lang.Object
com.aspectran.core.service.AbstractServiceController
com.aspectran.core.service.AbstractCoreService
- All Implemented Interfaces:
CoreService
,ServiceController
- Direct Known Subclasses:
AspectranCoreService
The Class AbstractCoreService.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
createSchedulerService
(SchedulerConfig schedulerConfig) protected ActivityContextBuilder
Returns the Aspectran configuration parameters used to generate the AspectranService.Returns the base path where the root application is running.Returns the service controller for this service.protected boolean
boolean
boolean
Returns whether this service is derived from another root service.boolean
Returns whether to reload all Java classes, resources, and activity context configurations.boolean
Returns whether the service should be started separately late after the root service is started.void
joinDerivedService
(CoreService coreService) Add a derived core service.void
protected void
setActivityContext
(ActivityContext activityContext) protected void
setActivityContextBuilder
(ActivityContextBuilder activityContextBuilder) void
setAltClassLoader
(ClassLoader altClassLoader) protected void
setAspectranConfig
(AspectranConfig aspectranConfig) protected void
setBasePath
(String basePath) protected void
setServiceClassLoader
(ClassLoader serviceClassLoader) void
withdrawDerivedService
(CoreService coreService) Methods inherited from class com.aspectran.core.service.AbstractServiceController
clearDerivedService, doPause, doPause, doResume, doStart, doStop, getLock, getRootService, getServiceName, isActive, isBusy, isExposable, joinDerivedService, pause, pause, restart, restart, resume, setExposals, setRootService, setServiceStateListener, start, stop, withdrawDerivedService
-
Constructor Details
-
AbstractCoreService
public AbstractCoreService() -
AbstractCoreService
-
-
Method Details
-
getBasePath
Description copied from interface:CoreService
Returns the base path where the root application is running.- Specified by:
getBasePath
in interfaceCoreService
- Returns:
- the base path for the root application
-
setBasePath
-
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 interfaceCoreService
- 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 interfaceCoreService
- Returns:
- false if only the activity context configuration is reloaded; true if all are reloaded
-
getServiceController
Description copied from interface:CoreService
Returns the service controller for this service.- Specified by:
getServiceController
in interfaceCoreService
- Returns:
- the service controller
-
joinDerivedService
Description copied from interface:CoreService
Add a derived core service. Derived services follow the life cycle of the root service.- Specified by:
joinDerivedService
in interfaceCoreService
- Parameters:
coreService
- the core service
-
withdrawDerivedService
- Specified by:
withdrawDerivedService
in interfaceCoreService
-
leaveFromRootService
public void leaveFromRootService()- Specified by:
leaveFromRootService
in interfaceCoreService
-
isDerived
public boolean isDerived()Description copied from class:AbstractServiceController
Returns whether this service is derived from another root service.- Specified by:
isDerived
in interfaceCoreService
- Specified by:
isDerived
in classAbstractServiceController
- Returns:
- whether this service is derived
-
getAspectranConfig
Description copied from interface:CoreService
Returns the Aspectran configuration parameters used to generate the AspectranService.- Specified by:
getAspectranConfig
in interfaceCoreService
- Returns:
- the Aspectran Configuration Parameters
-
setAspectranConfig
-
hasActivityContextBuilder
protected boolean hasActivityContextBuilder() -
getActivityContextBuilder
-
setActivityContextBuilder
-
getActivityContext
- Specified by:
getActivityContext
in interfaceCoreService
- Returns:
- the activity context
-
setActivityContext
-
getDefaultActivity
- Specified by:
getDefaultActivity
in interfaceCoreService
- Returns:
- the default activity
-
hasServiceClassLoader
public boolean hasServiceClassLoader()- Specified by:
hasServiceClassLoader
in interfaceCoreService
-
getServiceClassLoader
- Specified by:
getServiceClassLoader
in interfaceCoreService
- Returns:
- the ClassLoader used within the service.
-
setServiceClassLoader
-
getAltClassLoader
- Specified by:
getAltClassLoader
in interfaceCoreService
-
setAltClassLoader
-
getSchedulerService
- Specified by:
getSchedulerService
in interfaceCoreService
- Returns:
- the scheduler service
-
createSchedulerService
-
checkDirectoryStructure
protected void checkDirectoryStructure()
-