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
public abstract class AbstractCoreService extends AbstractServiceController implements CoreService
The Class AbstractCoreService.
-
-
Constructor Summary
Constructors Constructor Description AbstractCoreService(ApplicationAdapter applicationAdapter)AbstractCoreService(CoreService rootService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateSchedulerService()protected voiddestroyActivityContext()protected voiddetermineBasePath()ActivityContextgetActivityContext()Gets the activity context.ApplicationAdaptergetApplicationAdapter()Gets the application adapter.AspectranClassLoadergetAspectranClassLoader()Gets the aspectran class loader.AspectranConfiggetAspectranConfig()Returns the Aspectran configuration parameters used to generate the AspectranService.java.lang.StringgetBasePath()ServiceControllergetServiceController()Returns the service controller for this service.booleanisDerived()Returns whether this service is derived from another root service.protected booleanisExposable(java.lang.String transletName)booleanisHardReload()Returns whether to reload all Java classes, resources, and activity context configurations.booleanisLateStart()voidjoinDerivedService(CoreService coreService)Add a derived core service.protected voidloadActivityContext()protected voidprepare(AspectranConfig aspectranConfig)voidsetActivityContext(ActivityContext activityContext)protected voidsetBasePath(java.lang.String basePath)protected voidsetExposals(java.lang.String[] includePatterns, java.lang.String[] excludePatterns)-
Methods inherited from class com.aspectran.core.service.AbstractServiceController
doPause, doPause, doRestart, doResume, doStart, doStop, getLock, getServiceName, isActive, isBusy, joinDerivedService, pause, pause, restart, restart, resume, setServiceStateListener, start, stop
-
-
-
-
Constructor Detail
-
AbstractCoreService
public AbstractCoreService(ApplicationAdapter applicationAdapter)
-
AbstractCoreService
public AbstractCoreService(CoreService rootService)
-
-
Method Detail
-
getApplicationAdapter
public ApplicationAdapter getApplicationAdapter()
Description copied from interface:CoreServiceGets the application adapter.- Specified by:
getApplicationAdapterin interfaceCoreService- Returns:
- the application adapter
-
getBasePath
public java.lang.String getBasePath()
- Specified by:
getBasePathin interfaceCoreService
-
setBasePath
protected void setBasePath(java.lang.String basePath)
-
isLateStart
public boolean isLateStart()
- Specified by:
isLateStartin interfaceCoreService
-
getActivityContext
public ActivityContext getActivityContext()
Description copied from interface:CoreServiceGets the activity context.- Specified by:
getActivityContextin interfaceCoreService- Returns:
- the activity context
-
setActivityContext
public void setActivityContext(ActivityContext activityContext)
-
getAspectranClassLoader
public AspectranClassLoader getAspectranClassLoader()
Description copied from interface:CoreServiceGets the aspectran class loader.- Specified by:
getAspectranClassLoaderin interfaceCoreService- Returns:
- the aspectran class loader
-
getAspectranConfig
public AspectranConfig getAspectranConfig()
Description copied from interface:CoreServiceReturns the Aspectran configuration parameters used to generate the AspectranService.- Specified by:
getAspectranConfigin interfaceCoreService- Returns:
- the Aspectran Configuration Parameters
-
isHardReload
public boolean isHardReload()
Description copied from interface:CoreServiceReturns whether to reload all Java classes, resources, and activity context configurations.- Specified by:
isHardReloadin interfaceCoreService- Returns:
- false if only the activity context configuration is reloaded; true if all are reloaded
-
getServiceController
public ServiceController getServiceController()
Description copied from interface:CoreServiceReturns the service controller for this service.- Specified by:
getServiceControllerin interfaceCoreService- Returns:
- the service controller
-
joinDerivedService
public void joinDerivedService(CoreService coreService)
Description copied from interface:CoreServiceAdd a derived core service. Derived services follow the life cycle of the root service.- Specified by:
joinDerivedServicein interfaceCoreService- Parameters:
coreService- the core service
-
isDerived
public boolean isDerived()
Description copied from interface:ServiceControllerReturns whether this service is derived from another root service.- Specified by:
isDerivedin interfaceServiceController- Returns:
- whether this service is derived
-
prepare
protected void prepare(AspectranConfig aspectranConfig) throws AspectranServiceException
- Throws:
AspectranServiceException
-
setExposals
protected void setExposals(java.lang.String[] includePatterns, java.lang.String[] excludePatterns)
-
isExposable
protected boolean isExposable(java.lang.String transletName)
-
loadActivityContext
protected void loadActivityContext() throws ActivityContextBuilderException- Throws:
ActivityContextBuilderException
-
destroyActivityContext
protected void destroyActivityContext()
-
createSchedulerService
protected void createSchedulerService()
-
determineBasePath
protected void determineBasePath()
-
-