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 Type
    Method
    Description
    boolean
    isExposable(String transletName)
    Returns whether the translet can be exposed to the daemon service.
    com.aspectran.core.adapter.SessionAdapter
    Create and return a new session adapter from the daemon service.
    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.
    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.

    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

      boolean isExposable(String transletName)
      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 name
      attributeMap - the attribute map
      parameterMap - the parameter map
      Returns:
      the Translet object
    • 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 name
      method - the request method
      attributeMap - the attribute map
      parameterMap - the parameter map
      Returns:
      the Translet object