Interface RendererService
- All Known Implementing Classes:
DefaultRendererService
public interface RendererService
Service to gather renderer templates and render them.
- Spring Bean ID:
- rendererService
-
Method Summary
Modifier and TypeMethodDescriptionGets RendererTemplate that match a codevoidrender(RendererTemplateModel template, Object context, Writer output) Renders template using default renderer.voidrender(Renderer renderer, RendererTemplateModel template, Object context, Writer output) Renders template using renderer passed as a parameter.
-
Method Details
-
render
Renders template using renderer passed as a parameter. Rendered content is stored into output.- Parameters:
renderer- renderer used to render templatetemplate- to rendercontext- context (usually map of properties)output- rendered content
-
render
Renders template using default renderer. Rendered content is stored into output.- Parameters:
template- to rendercontext- context (usually map of properties)output- rendered content
-
getRendererTemplateForCode
Gets RendererTemplate that match a code- Parameters:
code- template identifier- Returns:
- found template
- Throws:
UnknownIdentifierException- if no RendererTemplate with the specified code is foundAmbiguousIdentifierException- if more than one RendererTemplate with the specified code is found
-