Class TemplatePathBuildItem.Builder

java.lang.Object
io.quarkus.qute.deployment.TemplatePathBuildItem.Builder
Enclosing class:
TemplatePathBuildItem

public static class TemplatePathBuildItem.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • path

      Set the path relative to the template root. The / is used as a path separator.

      The path must be unique, i.e. if there are multiple templates with the same path then the template analysis fails during build.

      Parameters:
      path -
      Returns:
      self
    • content

      public TemplatePathBuildItem.Builder content(String content)
      Set the content of the template.
      Parameters:
      content -
      Returns:
      self
    • fullPath

      public TemplatePathBuildItem.Builder fullPath(Path fullPath)
      Set the full path of the template for templates that are backed by a file.
      Parameters:
      fullPath -
      Returns:
      self
    • source

      public TemplatePathBuildItem.Builder source(URI source)
      Set the source path of the template.
      Parameters:
      source -
      Returns:
      self
    • extensionInfo

      public TemplatePathBuildItem.Builder extensionInfo(String info)
      Set the extension info for templates that are not backed by a file.
      Parameters:
      info -
      Returns:
      self
    • priority

      public TemplatePathBuildItem.Builder priority(int priority)
      Set the priority of the template.
      Parameters:
      priority -
      Returns:
      self
      See Also:
      • QuteConfig.duplicitTemplatesStrategy()
    • build

      public TemplatePathBuildItem build()