Interface EmbeddedAspectran

  • All Superinterfaces:
    com.aspectran.core.service.CoreService

    public interface EmbeddedAspectran
    extends com.aspectran.core.service.CoreService
    The Interface EmbeddedAspectran.

    Created: 2017. 10. 28.

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.aspectran.core.adapter.SessionAdapter newSessionAdapter()
      Creates a new session adapter for the embedded aspectran and returns.
      void release()
      Stop the service and release all allocated resources.
      static EmbeddedAspectran run​(com.aspectran.core.context.config.AspectranConfig aspectranConfig)
      Run the Embedded Aspectran, creating and starting a new EmbeddedService.
      static EmbeddedAspectran run​(java.lang.String rootConfigFile)
      Run the Embedded Aspectran, creating and starting a new EmbeddedService.
      java.lang.String template​(java.lang.String templateId)
      Evaluate the template without any provided variables.
      java.lang.String template​(java.lang.String templateId, com.aspectran.core.activity.request.parameter.ParameterMap parameterMap)
      Evaluate the template with a set of parameters.
      java.lang.String template​(java.lang.String templateId, com.aspectran.core.activity.request.parameter.ParameterMap parameterMap, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
      Evaluate the template with a set of parameters and a set of attributes.
      java.lang.String template​(java.lang.String templateId, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
      Evaluate the template with a set of parameters.
      com.aspectran.core.activity.Translet translate​(java.lang.String name)
      Execute the translet.
      com.aspectran.core.activity.Translet translate​(java.lang.String name, com.aspectran.core.activity.request.parameter.ParameterMap parameterMap)
      Execute the translet.
      com.aspectran.core.activity.Translet translate​(java.lang.String name, com.aspectran.core.activity.request.parameter.ParameterMap parameterMap, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
      Execute the translet.
      com.aspectran.core.activity.Translet translate​(java.lang.String name, com.aspectran.core.context.rule.type.MethodType method)
      Execute the translet.
      com.aspectran.core.activity.Translet translate​(java.lang.String name, com.aspectran.core.context.rule.type.MethodType method, com.aspectran.core.activity.request.parameter.ParameterMap parameterMap)
      Execute the translet.
      com.aspectran.core.activity.Translet translate​(java.lang.String name, com.aspectran.core.context.rule.type.MethodType method, com.aspectran.core.activity.request.parameter.ParameterMap parameterMap, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
      Execute the translet.
      com.aspectran.core.activity.Translet translate​(java.lang.String name, com.aspectran.core.context.rule.type.MethodType method, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
      Execute the translet.
      com.aspectran.core.activity.Translet translate​(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attributeMap)
      Execute the translet.
      • Methods inherited from interface com.aspectran.core.service.CoreService

        getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, getServiceController, isHardReload, isLateStart, joinDerivedService
    • Method Detail

      • newSessionAdapter

        com.aspectran.core.adapter.SessionAdapter newSessionAdapter()
        Creates a new session adapter for the embedded aspectran and returns.
        Returns:
        the session adapter
      • translate

        com.aspectran.core.activity.Translet translate​(java.lang.String name)
        Execute the translet.
        Parameters:
        name - the translet name
        Returns:
        the Translet object
      • translate

        com.aspectran.core.activity.Translet translate​(java.lang.String name,
                                                       com.aspectran.core.activity.request.parameter.ParameterMap parameterMap)
        Execute the translet.
        Parameters:
        name - the translet name
        parameterMap - the parameter map
        Returns:
        the Translet object
      • translate

        com.aspectran.core.activity.Translet translate​(java.lang.String name,
                                                       com.aspectran.core.activity.request.parameter.ParameterMap parameterMap,
                                                       java.util.Map<java.lang.String,java.lang.Object> attributeMap)
        Execute the translet.
        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,
                                                       java.util.Map<java.lang.String,java.lang.Object> attributeMap)
        Execute the translet.
        Parameters:
        name - the translet name
        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)
        Execute the translet.
        Parameters:
        name - the translet name
        method - the request method
        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.parameter.ParameterMap parameterMap)
        Execute the translet.
        Parameters:
        name - the translet name
        method - the request method
        parameterMap - the parameter map
        Returns:
        the Translet object
      • translate

        com.aspectran.core.activity.Translet translate​(java.lang.String name,
                                                       com.aspectran.core.context.rule.type.MethodType method,
                                                       java.util.Map<java.lang.String,java.lang.Object> attributeMap)
        Execute the translet.
        Parameters:
        name - the translet name
        method - the request method
        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.parameter.ParameterMap parameterMap,
                                                       java.util.Map<java.lang.String,java.lang.Object> attributeMap)
        Execute the translet.
        Parameters:
        name - the translet name
        method - the request method
        parameterMap - the parameter map
        attributeMap - the attribute map
        Returns:
        the Translet object
      • template

        java.lang.String template​(java.lang.String templateId)
        Evaluate the template without any provided variables.
        Parameters:
        templateId - the template id
        Returns:
        the output string of the template
      • template

        java.lang.String template​(java.lang.String templateId,
                                  com.aspectran.core.activity.request.parameter.ParameterMap parameterMap)
        Evaluate the template with a set of parameters.
        Parameters:
        templateId - the template id
        parameterMap - the parameter map
        Returns:
        the output string of the template
      • template

        java.lang.String template​(java.lang.String templateId,
                                  java.util.Map<java.lang.String,java.lang.Object> attributeMap)
        Evaluate the template with a set of parameters.
        Parameters:
        templateId - the template id
        attributeMap - the attribute map
        Returns:
        the output string of the template
      • template

        java.lang.String template​(java.lang.String templateId,
                                  com.aspectran.core.activity.request.parameter.ParameterMap parameterMap,
                                  java.util.Map<java.lang.String,java.lang.Object> attributeMap)
        Evaluate the template with a set of parameters and a set of attributes.
        Parameters:
        templateId - the template id
        parameterMap - the parameter map
        attributeMap - the attribute map
        Returns:
        the output string of the template
      • release

        void release()
        Stop the service and release all allocated resources.
      • run

        static EmbeddedAspectran run​(java.lang.String rootConfigFile)
        Run the Embedded Aspectran, creating and starting a new EmbeddedService.
        Parameters:
        rootConfigFile - the root configuration file
        Returns:
        the instance of EmbeddedService
      • run

        static EmbeddedAspectran run​(com.aspectran.core.context.config.AspectranConfig aspectranConfig)
        Run the Embedded Aspectran, creating and starting a new EmbeddedService.
        Parameters:
        aspectranConfig - the parameters for aspectran configuration
        Returns:
        the instance of EmbeddedService