Package org.springframework.aot.hint
Class ResourcePatternHints.Builder
java.lang.Object
org.springframework.aot.hint.ResourcePatternHints.Builder
- Enclosing class:
- ResourcePatternHints
Builder for
ResourcePatternHints
.-
Method Summary
Modifier and TypeMethodDescriptionExclude resources matching the specified patterns.excludes
(TypeReference reachableType, String... excludes) Exclude resources matching the specified patterns.Include resources matching the specified patterns.includes
(TypeReference reachableType, String... includes) Include resources matching the specified patterns.
-
Method Details
-
includes
public ResourcePatternHints.Builder includes(@Nullable TypeReference reachableType, String... includes) Include resources matching the specified patterns.- Parameters:
reachableType
- the type that should be reachable for this hint to applyincludes
- the include patterns (seeResourcePatternHint
documentation)- Returns:
this
, to facilitate method chaining
-
includes
Include resources matching the specified patterns.- Parameters:
includes
- the include patterns (seeResourcePatternHint
documentation)- Returns:
this
, to facilitate method chaining
-
excludes
public ResourcePatternHints.Builder excludes(@Nullable TypeReference reachableType, String... excludes) Exclude resources matching the specified patterns.- Parameters:
reachableType
- the type that should be reachable for this hint to applyexcludes
- the exclude patterns (seeResourcePatternHint
documentation)- Returns:
this
, to facilitate method chaining
-
excludes
Exclude resources matching the specified patterns.- Parameters:
excludes
- the exclude patterns (seeResourcePatternHint
documentation)- Returns:
this
, to facilitate method chaining
-