Package io.sundr.codegen.template
Class TemplateRendererFactory
java.lang.Object
io.sundr.codegen.template.TemplateRendererFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the renderer supports the specified template.abstract <T> TemplateRenderer<T>String[]Get the supported template extensions.
-
Constructor Details
-
TemplateRendererFactory
public TemplateRendererFactory()
-
-
Method Details
-
create
public abstract <T> TemplateRenderer<T> create(Class<T> type, URL templateUrl, String... parameters) -
getTemplateExtensions
Get the supported template extensions.- Returns:
- an array with the supported extensions (without the dot).
-
accepts
Check if the renderer supports the specified template.- Parameters:
templateUrl- The template url.- Returns:
- true if content is supported, false otherwise.
-