Class ResourcePatternHints.Builder

java.lang.Object
org.springframework.aot.hint.ResourcePatternHints.Builder
Enclosing class:
ResourcePatternHints

public static class ResourcePatternHints.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • includes

      public ResourcePatternHints.Builder includes(@Nullable TypeReference reachableType, String... includes)
      Includes the resources matching the specified pattern.
      Parameters:
      reachableType - the type that should be reachable for this hint to apply
      includes - the include patterns (see ResourcePatternHint documentation)
      Returns:
      this, to facilitate method chaining
    • includes

      public ResourcePatternHints.Builder includes(String... includes)
      Includes the resources matching the specified pattern.
      Parameters:
      includes - the include patterns (see ResourcePatternHint documentation)
      Returns:
      this, to facilitate method chaining
    • excludes

      public ResourcePatternHints.Builder excludes(TypeReference reachableType, String... excludes)
      Exclude resources matching the specified pattern.
      Parameters:
      reachableType - the type that should be reachable for this hint to apply
      excludes - the excludes pattern (see ResourcePatternHint documentation)
      Returns:
      this, to facilitate method chaining
    • excludes

      public ResourcePatternHints.Builder excludes(String... excludes)
      Exclude resources matching the specified pattern.
      Parameters:
      excludes - the excludes pattern (see ResourcePatternHint documentation)
      Returns:
      this, to facilitate method chaining