java.lang.Object
io.jstach.jstachio.spi.JStachioFactory.Builder
- Enclosing class:
- JStachioFactory
Builder for creating jstachios.
- Author:
- agent
-
Method Summary
Modifier and TypeMethodDescriptionadd(JStachioExtension extension) Adds an extensionadd(Iterable<JStachioExtension> extensions) Add extensions.build()Builds a JStachio by coalescing the extensions.Current mutable list of extensions.
-
Method Details
-
add
Adds an extension- Parameters:
extension- not null- Returns:
- this
-
add
Add extensions. Useful for adding ServiceLoader results:builder.add(ServiceLoader.load(JStachioExtension.class));- Parameters:
extensions- not null- Returns:
- this
-
build
Builds a JStachio by coalescing the extensions.- Returns:
- resolved JStachio
- API Note
- See
JStachioExtensionsfor logic on how the extensions are consolidated.
-
extensions
Current mutable list of extensions.- Returns:
- mutable list of extensions
-