Class DefaultEmbeddedAspectran

    • Constructor Detail

      • DefaultEmbeddedAspectran

        public DefaultEmbeddedAspectran()
    • Method Detail

      • afterContextLoaded

        public void afterContextLoaded()
                                throws java.lang.Exception
        Description copied from class: AspectranCoreService
        This method is executed immediately after the ActivityContext is loaded.
        Overrides:
        afterContextLoaded in class AspectranCoreService
        Throws:
        java.lang.Exception - if an error occurs
      • translate

        public Translet translate​(java.lang.String name)
        Executes the translet.
        Specified by:
        translate in interface EmbeddedAspectran
        Parameters:
        name - the translet name
        Returns:
        the Translet object
      • translate

        public Translet translate​(java.lang.String name,
                                  ParameterMap parameterMap)
        Executes the translet.
        Specified by:
        translate in interface EmbeddedAspectran
        Parameters:
        name - the translet name
        parameterMap - the parameter map
        Returns:
        the Translet object
      • translate

        public Translet translate​(java.lang.String name,
                                  ParameterMap parameterMap,
                                  java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Executes the translet.
        Specified by:
        translate in interface EmbeddedAspectran
        Parameters:
        name - the translet name
        parameterMap - the parameter map
        attributeMap - the attribute map
        Returns:
        the Translet object
      • translate

        public Translet translate​(java.lang.String name,
                                  java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Executes the translet.
        Specified by:
        translate in interface EmbeddedAspectran
        Parameters:
        name - the translet name
        attributeMap - the attribute map
        Returns:
        the Translet object
      • translate

        public Translet translate​(java.lang.String name,
                                  MethodType method)
        Executes the translet.
        Specified by:
        translate in interface EmbeddedAspectran
        Parameters:
        name - the translet name
        method - the request method
        Returns:
        the Translet object
      • translate

        public Translet translate​(java.lang.String name,
                                  MethodType method,
                                  ParameterMap parameterMap)
        Executes the translet.
        Specified by:
        translate in interface EmbeddedAspectran
        Parameters:
        name - the translet name
        method - the request method
        parameterMap - the parameter map
        Returns:
        the Translet object
      • translate

        public Translet translate​(java.lang.String name,
                                  MethodType method,
                                  java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Executes the translet.
        Specified by:
        translate in interface EmbeddedAspectran
        Parameters:
        name - the translet name
        method - the request method
        attributeMap - the attribute map
        Returns:
        the Translet object
      • translate

        public Translet translate​(java.lang.String name,
                                  MethodType method,
                                  ParameterMap parameterMap,
                                  java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Executes the translet.
        Specified by:
        translate in interface EmbeddedAspectran
        Parameters:
        name - the translet name
        method - the request method
        parameterMap - the parameter map
        attributeMap - the attribute map
        Returns:
        the Translet object
      • template

        public java.lang.String template​(java.lang.String templateId)
        Evaluates the template without any provided variables.
        Specified by:
        template in interface EmbeddedAspectran
        Parameters:
        templateId - the template id
        Returns:
        the output string of the template
      • template

        public java.lang.String template​(java.lang.String templateId,
                                         ParameterMap parameterMap)
        Evaluates the template with a set of parameters.
        Specified by:
        template in interface EmbeddedAspectran
        Parameters:
        templateId - the template id
        parameterMap - the parameter map
        Returns:
        the output string of the template
      • template

        public 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.
        Specified by:
        template in interface EmbeddedAspectran
        Parameters:
        templateId - the template id
        attributeMap - the attribute map
        Returns:
        the output string of the template
      • template

        public java.lang.String template​(java.lang.String templateId,
                                         ParameterMap parameterMap,
                                         java.util.Map<java.lang.String,​java.lang.Object> attributeMap)
        Evaluates the template with a set of parameters and attributes.
        Specified by:
        template in interface EmbeddedAspectran
        Parameters:
        templateId - the template id
        parameterMap - the parameter map
        attributeMap - the attribute map
        Returns:
        the output string of the template
      • create

        protected static DefaultEmbeddedAspectran create​(AspectranConfig aspectranConfig)
        Returns a new instance of DefaultEmbeddedAspectran.
        Parameters:
        aspectranConfig - the parameters for aspectran configuration
        Returns:
        the instance of DefaultEmbeddedAspectran