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
Returns the activity context.Returns the Aspectran configuration parameters used to generate the AspectranService.Returns the base path where the root application is running.Returns the default activity.Returns the scheduler service.Returns the service controller for this service.Returns the siblings class loader.boolean
Returns whether this service is derived from another root service.protected boolean
isExposable
(String transletName) 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
protected void
prepare
(AspectranConfig aspectranConfig) void
setActivityContext
(ActivityContext activityContext) protected void
setBasePath
(String basePath) protected void
setExposals
(String[] includePatterns, String[] excludePatterns) void
withdrawDerivedService
(CoreService coreService) Methods inherited from class com.aspectran.core.service.AbstractServiceController
clearDerivedService, doPause, doPause, doResume, doStart, doStop, getLock, getServiceName, isActive, isBusy, joinDerivedService, pause, pause, restart, restart, resume, 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
-
isExposable
-
setExposals
-
prepare
- Throws:
AspectranServiceException
-
loadActivityContext
- Throws:
ActivityContextBuilderException
-
destroyActivityContext
protected void destroyActivityContext() -
getActivityContext
Description copied from interface:CoreService
Returns the activity context.- Specified by:
getActivityContext
in interfaceCoreService
- Returns:
- the activity context
-
setActivityContext
-
getDefaultActivity
Description copied from interface:CoreService
Returns the default activity.- Specified by:
getDefaultActivity
in interfaceCoreService
- Returns:
- the default activity
-
getSiblingsClassLoader
Description copied from interface:CoreService
Returns the siblings class loader.- Specified by:
getSiblingsClassLoader
in interfaceCoreService
- Returns:
- the siblings class loader
-
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
-
getSchedulerService
Description copied from interface:CoreService
Returns the scheduler service.- Specified by:
getSchedulerService
in interfaceCoreService
- Returns:
- the scheduler service
-
checkDirectoryStructure
protected void checkDirectoryStructure()
-