Package com.aspectran.core.service
Interface CoreService
-
- All Known Subinterfaces:
DaemonService
,EmbeddedAspectran
,ShellService
,TowService
,WebService
- All Known Implementing Classes:
AbstractCoreService
,AbstractDaemonService
,AbstractEmbeddedAspectran
,AbstractShellService
,AbstractTowService
,AspectranCoreService
,DefaultDaemonService
,DefaultEmbeddedAspectran
,DefaultShellService
,DefaultTowService
,DefaultWebService
public interface CoreService
The Interface CoreService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActivityContext
getActivityContext()
Returns the activity context.AspectranClassLoader
getAspectranClassLoader()
Returns the aspectran class loader.AspectranConfig
getAspectranConfig()
Returns the Aspectran configuration parameters used to generate the AspectranService.java.lang.String
getBasePath()
Returns the base path where the root application is running.Activity
getDefaultActivity()
Returns the default activity.ServiceController
getServiceController()
Returns the service controller for this service.boolean
isDerived()
boolean
isHardReload()
Returns whether to reload all Java classes, resources, and activity context configurations.boolean
isLateStart()
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
leaveFromRootService()
void
withdrawDerivedService(CoreService coreService)
-
-
-
Method Detail
-
getBasePath
java.lang.String getBasePath()
Returns the base path where the root application is running.- Returns:
- the base path for the root application
-
isLateStart
boolean isLateStart()
Returns whether the service should be started separately late after the root service is started.- Returns:
- true if the service should start separately late; false otherwise
-
getActivityContext
ActivityContext getActivityContext()
Returns the activity context.- Returns:
- the activity context
-
getDefaultActivity
Activity getDefaultActivity()
Returns the default activity.- Returns:
- the default activity
-
getAspectranClassLoader
AspectranClassLoader getAspectranClassLoader()
Returns the aspectran class loader.- Returns:
- the aspectran class loader
-
getAspectranConfig
AspectranConfig getAspectranConfig()
Returns the Aspectran configuration parameters used to generate the AspectranService.- Returns:
- the Aspectran Configuration Parameters
-
isHardReload
boolean isHardReload()
Returns whether to reload all Java classes, resources, and activity context configurations.- Returns:
- false if only the activity context configuration is reloaded; true if all are reloaded
-
getServiceController
ServiceController getServiceController()
Returns the service controller for this service.- Returns:
- the service controller
-
joinDerivedService
void joinDerivedService(CoreService coreService)
Add a derived core service. Derived services follow the life cycle of the root service.- Parameters:
coreService
- the core service
-
withdrawDerivedService
void withdrawDerivedService(CoreService coreService)
-
leaveFromRootService
void leaveFromRootService()
-
isDerived
boolean isDerived()
-
-