Package com.aspectran.core.service
Class AbstractCoreService
java.lang.Object
com.aspectran.core.service.AbstractServiceLifeCycle
com.aspectran.core.service.AbstractCoreService
- All Implemented Interfaces:
CoreService
,ServiceLifeCycle
- Direct Known Subclasses:
DefaultCoreService
The Class AbstractCoreService.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
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 life cycle for this service.Returns the name of this service.protected boolean
boolean
boolean
isAcceptable
(String requestName) Returns whether the request can be processed by this service.boolean
Returns whether this service is derived from a parent service.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
setContextName
(String contextName) protected void
setRequestAcceptor
(RequestAcceptor requestAcceptor) protected void
setServiceClassLoader
(ClassLoader serviceClassLoader) Methods inherited from class com.aspectran.core.service.AbstractServiceLifeCycle
addService, doStart, doStop, getLock, getParentService, getRootService, isActive, isBusy, isOrphan, isRootService, pause, pause, removeService, restart, restart, resume, setServiceStateListener, start, stop, withdraw
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aspectran.core.service.CoreService
getParentService, getRootService, isOrphan, isRootService
-
Constructor Details
-
AbstractCoreService
public AbstractCoreService() -
AbstractCoreService
-
-
Method Details
-
isDerived
public boolean isDerived()Description copied from interface:CoreService
Returns whether this service is derived from a parent service.- Specified by:
isDerived
in interfaceCoreService
- Specified by:
isDerived
in interfaceServiceLifeCycle
- Returns:
- whether this service is derived
-
getServiceName
Description copied from interface:ServiceLifeCycle
Returns the name of this service.- Specified by:
getServiceName
in interfaceServiceLifeCycle
- Overrides:
getServiceName
in classAbstractServiceLifeCycle
- Returns:
- the name of this service
-
getServiceLifeCycle
Description copied from interface:CoreService
Returns the service life cycle for this service.- Specified by:
getServiceLifeCycle
in interfaceCoreService
- Returns:
- the service life cycle
-
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
-
getContextName
- Specified by:
getContextName
in interfaceCoreService
- Overrides:
getContextName
in classAbstractServiceLifeCycle
-
setContextName
-
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
-
getApplicationAdapter
- Specified by:
getApplicationAdapter
in interfaceCoreService
-
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
-
buildSchedulerService
protected void buildSchedulerService() -
destroySchedulerService
protected void destroySchedulerService() -
isAcceptable
Description copied from interface:CoreService
Returns whether the request can be processed by this service.- Specified by:
isAcceptable
in interfaceCoreService
- Parameters:
requestName
- the name of the request to check- Returns:
- true if the request can be processed by this service; otherwise, false
-
setRequestAcceptor
-