Class TemplateEngineBuilder
- java.lang.Object
-
- compozitor.template.core.interfaces.TemplateEngineBuilder
-
public class TemplateEngineBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSERDIRECTIVE_TEMPLATES_LOCATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateEngineBuilderaddClassLoader(ClassLoader classLoader)TemplateEngineBuilderaddDirectives(Class<? extends org.apache.velocity.runtime.directive.Directive>... directives)TemplateEngineBuilderaddDirectives(Collection<Class<? extends org.apache.velocity.runtime.directive.Directive>> directives)TemplateEngineBuilderaddMacros(Path path, String... files)TemplateEnginebuild()static TemplateEngineBuildercreate()Iterable<Class<? extends org.apache.velocity.runtime.directive.Directive>>directives()TemplateEngineBuilderloadMacros(Path path, Consumer<Iterable<String>> added)This method does not work in Annotation ProcessingTemplateEngineBuilderwithClasspathTemplateLoader()TemplateEngineBuilderwithDirectivePath(Path path)TemplateEngineBuilderwithPathTemplateLoader(Path location)TemplateEngineBuilderwithS3TemplateLoader(S3Bucket s3Bucket)
-
-
-
Field Detail
-
USERDIRECTIVE_TEMPLATES_LOCATION
public static final String USERDIRECTIVE_TEMPLATES_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static TemplateEngineBuilder create()
-
addClassLoader
public TemplateEngineBuilder addClassLoader(ClassLoader classLoader)
-
withClasspathTemplateLoader
public TemplateEngineBuilder withClasspathTemplateLoader()
-
withPathTemplateLoader
public TemplateEngineBuilder withPathTemplateLoader(Path location)
-
withS3TemplateLoader
public TemplateEngineBuilder withS3TemplateLoader(S3Bucket s3Bucket)
-
addDirectives
public TemplateEngineBuilder addDirectives(Collection<Class<? extends org.apache.velocity.runtime.directive.Directive>> directives)
-
addDirectives
public TemplateEngineBuilder addDirectives(Class<? extends org.apache.velocity.runtime.directive.Directive>... directives)
-
withDirectivePath
public TemplateEngineBuilder withDirectivePath(Path path)
-
loadMacros
public TemplateEngineBuilder loadMacros(Path path, Consumer<Iterable<String>> added)
This method does not work in Annotation Processing
-
addMacros
public TemplateEngineBuilder addMacros(Path path, String... files)
-
build
public TemplateEngine build()
-
-