Package com.aspectran.core.service
Class AspectranCoreService
- java.lang.Object
-
- com.aspectran.core.service.AbstractServiceController
-
- com.aspectran.core.service.AbstractCoreService
-
- com.aspectran.core.service.AspectranCoreService
-
- All Implemented Interfaces:
CoreService
,ServiceController
- Direct Known Subclasses:
AbstractShellService
,AspectranDaemonService
,AspectranEmbeddedService
,AspectranWebService
public class AspectranCoreService extends AbstractCoreService
The Class AspectranCoreService.
-
-
Constructor Summary
Constructors Constructor Description AspectranCoreService(ApplicationAdapter applicationAdapter)
Instantiates a new AspectranCoreService.AspectranCoreService(CoreService rootService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterContextLoaded()
This method is executed immediately after the ActivityContext is loaded.protected void
beforeContextDestroy()
This method executed just before the ActivityContext is destroyed.protected void
doPause()
protected void
doPause(long timeout)
protected void
doRestart()
protected void
doResume()
protected void
doStart()
protected void
doStop()
-
Methods inherited from class com.aspectran.core.service.AbstractCoreService
createSchedulerService, destroyActivityContext, determineBasePath, getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, getServiceController, isDerived, isExposable, isHardReload, isLateStart, joinDerivedService, loadActivityContext, prepare, setActivityContext, setBasePath, setExposals
-
Methods inherited from class com.aspectran.core.service.AbstractServiceController
getLock, getServiceName, isActive, isBusy, joinDerivedService, pause, pause, restart, restart, resume, setServiceStateListener, start, stop
-
-
-
-
Constructor Detail
-
AspectranCoreService
public AspectranCoreService(ApplicationAdapter applicationAdapter)
Instantiates a new AspectranCoreService.- Parameters:
applicationAdapter
- the application adapter
-
AspectranCoreService
public AspectranCoreService(CoreService rootService)
-
-
Method Detail
-
afterContextLoaded
protected void afterContextLoaded() throws java.lang.Exception
This method is executed immediately after the ActivityContext is loaded.- Throws:
java.lang.Exception
- if an error occurs
-
beforeContextDestroy
protected void beforeContextDestroy()
This method executed just before the ActivityContext is destroyed.
-
doStart
protected void doStart() throws java.lang.Exception
- Specified by:
doStart
in classAbstractServiceController
- Throws:
java.lang.Exception
-
doRestart
protected void doRestart() throws java.lang.Exception
- Specified by:
doRestart
in classAbstractServiceController
- Throws:
java.lang.Exception
-
doPause
protected void doPause() throws java.lang.Exception
- Specified by:
doPause
in classAbstractServiceController
- Throws:
java.lang.Exception
-
doPause
protected void doPause(long timeout) throws java.lang.Exception
- Specified by:
doPause
in classAbstractServiceController
- Throws:
java.lang.Exception
-
doResume
protected void doResume() throws java.lang.Exception
- Specified by:
doResume
in classAbstractServiceController
- Throws:
java.lang.Exception
-
doStop
protected void doStop()
- Specified by:
doStop
in classAbstractServiceController
-
-