类 ResourcePatternHints.Builder

java.lang.Object
cn.taketoday.aot.hint.ResourcePatternHints.Builder
封闭类:
ResourcePatternHints

public static class ResourcePatternHints.Builder extends Object
  • 字段详细资料

  • 构造器详细资料

    • Builder

      Builder()
  • 方法详细资料

    • includes

      public ResourcePatternHints.Builder includes(@Nullable TypeReference reachableType, String... includes)
      Include resources matching the specified patterns.
      参数:
      reachableType - the type that should be reachable for this hint to apply
      includes - the include patterns (see ResourcePatternHint documentation)
      返回:
      this, to facilitate method chaining
    • expandToIncludeDirectories

      private List<String> expandToIncludeDirectories(String includePattern)
      Expand the supplied include pattern into multiple patterns that include all parent directories for the ultimate resource or resources.

      This is necessary to support classpath scanning within a GraalVM native image.

      另请参阅:
    • includes

      public ResourcePatternHints.Builder includes(String... includes)
      Include resources matching the specified patterns.
      参数:
      includes - the include patterns (see ResourcePatternHint documentation)
      返回:
      this, to facilitate method chaining
    • excludes

      public ResourcePatternHints.Builder excludes(TypeReference reachableType, String... excludes)
      Exclude resources matching the specified patterns.
      参数:
      reachableType - the type that should be reachable for this hint to apply
      excludes - the exclude patterns (see ResourcePatternHint documentation)
      返回:
      this, to facilitate method chaining
    • excludes

      public ResourcePatternHints.Builder excludes(String... excludes)
      Exclude resources matching the specified patterns.
      参数:
      excludes - the exclude patterns (see ResourcePatternHint documentation)
      返回:
      this, to facilitate method chaining
    • build

      Create ResourcePatternHints based on the state of this builder.
      返回:
      resource pattern hints