Class JStachioFactory


public final class JStachioFactory extends Object
Creates JStachios mainly with the ServiceLoader or a JStachioFactory.Builder.
See Also:
  • Method Details

    • defaultJStachio

      public static JStachio defaultJStachio()
      Provides a singleton JStachio resolved by the ServiceLoader.

      Because of differences to how the ServiceLoader works with modular applications registration of generated templates is different. For modular applications you can either allow reflective access to JStachio:

       opens packagewith.jstachemodels to io.jstach.jstachio;
      Or you can generate a catalog of all templates and register them. See JStacheCatalog for details.
      service loader based jstachio.
    • builder

      A mutable builder to create JStachio from JStachioExtensions. Once is called the returned JStachio will be immutable. If no extensions are added the returned JStachio will be resolved in a simlar manner to the default JStachio.
      empty builder