Input
- Skill input type.Output
- Skill output type.Self
- of type Builder class.public static class BaseTemplateFactory.Builder<Input,Output,Self extends BaseTemplateFactory.Builder<Input,Output,Self>> extends Object
Modifier and Type | Field and Description |
---|---|
protected List<TemplateLoader<Input>> |
templateLoaders
List of loader interfaces for template loading from data store.
|
protected TemplateRenderer<Output> |
templateRenderer
Renderer interface for template rendering and response conversion.
|
Modifier | Constructor and Description |
---|---|
protected |
Builder()
Constructor for Builder class.
|
Modifier and Type | Method and Description |
---|---|
Self |
addTemplateLoader(TemplateLoader<Input> templateLoader)
Add a Template Loader to BaseTemplateFactory instance.
|
Self |
addTemplateLoaders(List<TemplateLoader<Input>> templateLoaders)
Add multiple Template Loaders to BaseTemplateFactory instance.
|
BaseTemplateFactory<Input,Output> |
build()
Builder method to build an instance of BaseTemplateFactory.
|
Self |
withTemplateRenderer(TemplateRenderer<Output> templateRenderer)
Add Template Renderer to BaseTemplateFactory instance.
|
protected List<TemplateLoader<Input>> templateLoaders
protected TemplateRenderer<Output> templateRenderer
public Self addTemplateLoader(TemplateLoader<Input> templateLoader)
templateLoader
- template loader.BaseTemplateFactory.Builder
.public Self addTemplateLoaders(List<TemplateLoader<Input>> templateLoaders)
templateLoaders
- list of TemplateLoader instances.BaseTemplateFactory.Builder
.public Self withTemplateRenderer(TemplateRenderer<Output> templateRenderer)
templateRenderer
- Template renderer.BaseTemplateFactory.Builder
.public BaseTemplateFactory<Input,Output> build()
BaseTemplateFactory
.Copyright © 2023. All rights reserved.