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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isExposable​(java.lang.String transletName)
      Returns whether or not the translet can be exposed to the daemon service.
      com.aspectran.core.adapter.SessionAdapter newSessionAdapter()
      Create and return a new session adapter from the daemon service.
      com.aspectran.core.activity.Translet translate​(java.lang.String name, com.aspectran.core.activity.request.ParameterMap parameterMap, java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
      Executes the translet with the given parameters and attributes.
      com.aspectran.core.activity.Translet translate​(java.lang.String name, com.aspectran.core.context.rule.type.MethodType method, com.aspectran.core.activity.request.ParameterMap parameterMap, java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
      Executes the translet with the given parameters and attributes.
      • Methods inherited from interface com.aspectran.core.service.CoreService

        getActivityContext, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, withdrawDerivedService
    • Method Detail

      • isExposable

        boolean isExposable​(java.lang.String transletName)
        Returns whether or not 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​(java.lang.String name,
                                                       com.aspectran.core.activity.request.ParameterMap parameterMap,
                                                       java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Executes the translet with the given parameters and attributes.
        Parameters:
        name - the translet name
        parameterMap - the parameter map
        attributeMap - the attribute map
        Returns:
        the Translet object
      • translate

        com.aspectran.core.activity.Translet translate​(java.lang.String name,
                                                       com.aspectran.core.context.rule.type.MethodType method,
                                                       com.aspectran.core.activity.request.ParameterMap parameterMap,
                                                       java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Executes the translet with the given parameters and attributes.
        Parameters:
        name - the translet name
        method - the request method
        parameterMap - the parameter map
        attributeMap - the attribute map
        Returns:
        the Translet object