Input
- Skill input type.Self
- of type Builder.public abstract static class AbstractLocalTemplateFileLoader.Builder<Input,Self extends AbstractLocalTemplateFileLoader.Builder<Input,Self>> extends Object
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
classLoader
Loads classes.
|
protected String |
directoryPath
Templates' directory path.
|
protected String |
fileExtension
Type of templates is determined by this file extension.
|
protected TemplateCache |
templateCache
Caches the template content.
|
protected BiFunction<String,Input,TemplateEnumerator<Input>> |
templateEnumeratorSupplier
Template enumerator supplier.
|
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Constructor for Builder class.
|
Modifier and Type | Method and Description |
---|---|
abstract AbstractLocalTemplateFileLoader<Input> |
build()
Builder method to build AbstractLocalTemplateFileLoader with the provided config.
|
Self |
withClassLoader(ClassLoader classLoader)
Adds class loader to TemplateFileLoader.
|
Self |
withDirectoryPath(String directoryPath)
Adds template directory path to TemplateFileLoader.
|
Self |
withFileExtension(String fileExtension)
Adds fileExtension to TemplateFileLoader.
|
Self |
withTemplateCache(TemplateCache templateCache)
Adds template cache to TemplateFileLoader.
|
Self |
withTemplateEnumeratorSupplier(BiFunction<String,Input,TemplateEnumerator<Input>> templateEnumeratorSupplier)
Adds template enumerator supplier.
|
protected String directoryPath
protected String fileExtension
protected ClassLoader classLoader
protected TemplateCache templateCache
protected BiFunction<String,Input,TemplateEnumerator<Input>> templateEnumeratorSupplier
public Self withDirectoryPath(String directoryPath)
directoryPath
- directory path.AbstractLocalTemplateFileLoader.Builder
.public Self withFileExtension(String fileExtension)
fileExtension
- template file extension.AbstractLocalTemplateFileLoader.Builder
.public Self withClassLoader(ClassLoader classLoader)
classLoader
- Loads classes.AbstractLocalTemplateFileLoader.Builder
.public Self withTemplateCache(TemplateCache templateCache)
templateCache
- template cache.AbstractLocalTemplateFileLoader.Builder
.public Self withTemplateEnumeratorSupplier(BiFunction<String,Input,TemplateEnumerator<Input>> templateEnumeratorSupplier)
templateEnumeratorSupplier
- template enumerator supplier.AbstractLocalTemplateFileLoader.Builder
.public abstract AbstractLocalTemplateFileLoader<Input> build()
AbstractLocalTemplateFileLoader
.Copyright © 2023. All rights reserved.