Class TemplateRendererFactory

java.lang.Object
io.sundr.codegen.template.TemplateRendererFactory

public abstract class TemplateRendererFactory extends Object
  • Constructor Details

    • TemplateRendererFactory

      public TemplateRendererFactory()
  • Method Details

    • create

      public abstract <T> TemplateRenderer<T> create(Class<T> type, URL templateUrl, String... parameters)
    • getTemplateExtensions

      public String[] getTemplateExtensions()
      Get the supported template extensions.
      Returns:
      an array with the supported extensions (without the dot).
    • accepts

      public boolean accepts(URL templateUrl)
      Check if the renderer supports the specified template.
      Parameters:
      templateUrl - The template url.
      Returns:
      true if content is supported, false otherwise.