Class JStachioFactory.Builder

java.lang.Object
io.jstach.jstachio.spi.JStachioFactory.Builder
Enclosing class:
JStachioFactory

public static class JStachioFactory.Builder extends Object
Builder for creating a custom JStachio.

 JStachio jstachio = JStachioFactory.builder()
     .add(extension1)
     .add(extension2)
     .build();
 
The order of adding extensions is important such that primacy order takes precedence as composite extensions such as config will be created if multiple of the same extension type are added. If you would like to share the JStachio in a service locator style you may want to set it as the default via JStachio.setStatic(java.util.function.Supplier) which will make all calls of JStachio.of() use the custom one.
Author:
agentgt
See Also: