Package com.aspectran.daemon.service
Interface DaemonService
- All Superinterfaces:
com.aspectran.core.service.CoreService
- All Known Implementing Classes:
AbstractDaemonService,DefaultDaemonService
public interface DaemonService
extends com.aspectran.core.service.CoreService
The Interface DaemonService.
Created: 2017. 10. 28.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisExposable(String transletName) Returns whether the translet can be exposed to the daemon service.com.aspectran.core.adapter.SessionAdapterCreate and return a new session adapter from the daemon service.com.aspectran.core.activity.Translettranslate(String name, com.aspectran.core.context.rule.type.MethodType method, Map<String, Object> attributeMap, com.aspectran.core.activity.request.ParameterMap parameterMap) Executes the translet with the given attributes and parameters.com.aspectran.core.activity.Translettranslate(String name, Map<String, Object> attributeMap, com.aspectran.core.activity.request.ParameterMap parameterMap) Executes the translet with the given attributes and parameters.Methods inherited from interface com.aspectran.core.service.CoreService
getActivityContext, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, getSiblingsClassLoader, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, withdrawDerivedService
-
Method Details
-
isExposable
Returns whether the translet can be exposed to the daemon service.- Parameters:
transletName- the name of the translet to check- Returns:
- true if the translet can be exposed; false otherwise
-
newSessionAdapter
com.aspectran.core.adapter.SessionAdapter newSessionAdapter()Create and return a new session adapter from the daemon service.- Returns:
- the session adapter
-
translate
com.aspectran.core.activity.Translet translate(String name, Map<String, Object> attributeMap, com.aspectran.core.activity.request.ParameterMap parameterMap) Executes the translet with the given attributes and parameters.- Parameters:
name- the translet nameattributeMap- the attribute mapparameterMap- the parameter map- Returns:
- the
Transletobject
-
translate
com.aspectran.core.activity.Translet translate(String name, com.aspectran.core.context.rule.type.MethodType method, Map<String, Object> attributeMap, com.aspectran.core.activity.request.ParameterMap parameterMap) Executes the translet with the given attributes and parameters.- Parameters:
name- the translet namemethod- the request methodattributeMap- the attribute mapparameterMap- the parameter map- Returns:
- the
Transletobject
-