Object TemplateManager

  • All Implemented Interfaces:

    
    public class TemplateManager
    
                        

    The TemplateManager handles multiple templates adapters.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String render(URL url, Map<String, ?> context, Locale locale) Render a template with a registered template engine.
      final Map<Regex, TemplatePort> getAdapters()
      final Unit setAdapters(Map<Regex, TemplatePort> adapters)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • render

         final String render(URL url, Map<String, ?> context, Locale locale)

        Render a template with a registered template engine.

        Parameters:
        url - Location of the template.
        context - Data to use when the template is processed.
        locale - Locale used to process the template.