public class TemplateEngineBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
USERDIRECTIVE_TEMPLATES_LOCATION |
| Modifier and Type | Method and Description |
|---|---|
TemplateEngineBuilder |
addClassLoader(ClassLoader classLoader) |
TemplateEngineBuilder |
addDirectives(Class<? extends org.apache.velocity.runtime.directive.Directive>... directives) |
TemplateEngineBuilder |
addDirectives(Collection<Class<? extends org.apache.velocity.runtime.directive.Directive>> directives) |
TemplateEngineBuilder |
addMacros(Path path,
String... files) |
TemplateEngine |
build() |
static TemplateEngineBuilder |
create() |
Iterable<Class<? extends org.apache.velocity.runtime.directive.Directive>> |
directives() |
TemplateEngineBuilder |
loadMacros(Path path,
Consumer<Iterable<String>> added)
This method does not work in Annotation Processing
|
TemplateEngineBuilder |
withClasspathTemplateLoader() |
TemplateEngineBuilder |
withDirectivePath(Path path) |
TemplateEngineBuilder |
withPathTemplateLoader(Path location) |
TemplateEngineBuilder |
withS3TemplateLoader(S3Bucket s3Bucket) |
public static final String USERDIRECTIVE_TEMPLATES_LOCATION
public static TemplateEngineBuilder create()
public TemplateEngineBuilder addClassLoader(ClassLoader classLoader)
public TemplateEngineBuilder withClasspathTemplateLoader()
public TemplateEngineBuilder withPathTemplateLoader(Path location)
public TemplateEngineBuilder withS3TemplateLoader(S3Bucket s3Bucket)
public TemplateEngineBuilder addDirectives(Collection<Class<? extends org.apache.velocity.runtime.directive.Directive>> directives)
public TemplateEngineBuilder addDirectives(Class<? extends org.apache.velocity.runtime.directive.Directive>... directives)
public TemplateEngineBuilder withDirectivePath(Path path)
public TemplateEngineBuilder loadMacros(Path path, Consumer<Iterable<String>> added)
public TemplateEngineBuilder addMacros(Path path, String... files)
public TemplateEngine build()
Copyright © 2020. All rights reserved.