Class DefaultEmbeddedAspectran

All Implemented Interfaces:
CoreService, ServiceController, EmbeddedAspectran

public class DefaultEmbeddedAspectran extends AbstractEmbeddedAspectran
Provides an interface that can be used by embedding Aspectran in Java applications.
Since:
3.0.0
  • Constructor Details

    • DefaultEmbeddedAspectran

      public DefaultEmbeddedAspectran()
  • Method Details

    • execute

      public <V> V execute(InstantAction<V> instantAction)
      Description copied from interface: EmbeddedAspectran
      Executes an instant activity.
      Parameters:
      instantAction - the instant action
      Returns:
      An object that is the result of performing an instant activity
    • translate

      public Translet translate(String name)
      Description copied from interface: EmbeddedAspectran
      Executes the translet.
      Parameters:
      name - the translet name
      Returns:
      the Translet object
    • translate

      public Translet translate(String name, String body)
      Description copied from interface: EmbeddedAspectran
      Executes the translet.
      Parameters:
      name - the translet name
      body - the request body
      Returns:
      the Translet object
    • translate

      public Translet translate(String name, Map<String,Object> attributeMap)
      Description copied from interface: EmbeddedAspectran
      Executes the translet with the given parameters.
      Parameters:
      name - the translet name
      attributeMap - the attribute map
      Returns:
      the Translet object
    • translate

      public Translet translate(String name, ParameterMap parameterMap)
      Description copied from interface: EmbeddedAspectran
      Executes the translet with the given parameters.
      Parameters:
      name - the translet name
      parameterMap - the parameter map
      Returns:
      the Translet object
    • translate

      public Translet translate(String name, Map<String,Object> attributeMap, ParameterMap parameterMap)
      Description copied from interface: EmbeddedAspectran
      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

      public Translet translate(String name, MethodType method)
      Description copied from interface: EmbeddedAspectran
      Executes the translet without the supplied variables.
      Parameters:
      name - the translet name
      method - the request method
      Returns:
      the Translet object
    • translate

      public Translet translate(String name, MethodType method, Map<String,Object> attributeMap)
      Description copied from interface: EmbeddedAspectran
      Executes the translet with the given attributes.
      Parameters:
      name - the translet name
      method - the request method
      attributeMap - the attribute map
      Returns:
      the Translet object
    • translate

      public Translet translate(String name, MethodType method, ParameterMap parameterMap)
      Description copied from interface: EmbeddedAspectran
      Executes the translet with the given parameters.
      Parameters:
      name - the translet name
      method - the request method
      parameterMap - the parameter map
      Returns:
      the Translet object
    • translate

      public Translet translate(String name, MethodType method, Map<String,Object> attributeMap, ParameterMap parameterMap)
      Description copied from interface: EmbeddedAspectran
      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
    • translate

      public Translet translate(String name, @Nullable MethodType method, @Nullable Map<String,Object> attributeMap, @Nullable ParameterMap parameterMap, @Nullable String body)
      Description copied from interface: EmbeddedAspectran
      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
      body - the request body
      Returns:
      the Translet object
    • render

      public String render(String templateId)
      Description copied from interface: EmbeddedAspectran
      Renders the template without the supplied variables.
      Parameters:
      templateId - the template id
      Returns:
      the output string of the template
    • render

      public String render(String templateId, Map<String,Object> attributeMap)
      Description copied from interface: EmbeddedAspectran
      Renders the template with the given attributes.
      Parameters:
      templateId - the template id
      attributeMap - the attribute map
      Returns:
      the output string of the template
    • render

      public String render(String templateId, ParameterMap parameterMap)
      Description copied from interface: EmbeddedAspectran
      Renders the template with the given parameters.
      Parameters:
      templateId - the template id
      parameterMap - the parameter map
      Returns:
      the output string of the template
    • render

      public String render(String templateId, Map<String,Object> attributeMap, ParameterMap parameterMap)
      Description copied from interface: EmbeddedAspectran
      Renders the template with the given attributes and parameters.
      Parameters:
      templateId - the template id
      attributeMap - the attribute map
      parameterMap - the parameter map
      Returns:
      the output string of the template