Interface RendererService

All Known Implementing Classes:
DefaultRendererService

public interface RendererService
Service to gather renderer templates and render them.
Spring Bean ID:
rendererService
  • Method Details

    • render

      void render(Renderer renderer, RendererTemplateModel template, Object context, Writer output)
      Renders template using renderer passed as a parameter. Rendered content is stored into output.
      Parameters:
      renderer - renderer used to render template
      template - to render
      context - context (usually map of properties)
      output - rendered content
    • render

      void render(RendererTemplateModel template, Object context, Writer output)
      Renders template using default renderer. Rendered content is stored into output.
      Parameters:
      template - to render
      context - context (usually map of properties)
      output - rendered content
    • getRendererTemplateForCode

      RendererTemplateModel getRendererTemplateForCode(String code)
      Gets RendererTemplate that match a code
      Parameters:
      code - template identifier
      Returns:
      found template
      Throws:
      UnknownIdentifierException - if no RendererTemplate with the specified code is found
      AmbiguousIdentifierException - if more than one RendererTemplate with the specified code is found