Package org.springframework.aot.hint
Class ResourcePatternHints.Builder
java.lang.Object
org.springframework.aot.hint.ResourcePatternHints.Builder
- Enclosing class:
- ResourcePatternHints
Builder for
ResourcePatternHints
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExclude resources matching the specified pattern.excludes
(TypeReference reachableType, String... excludes) Exclude resources matching the specified pattern.Includes the resources matching the specified pattern.includes
(TypeReference reachableType, String... includes) Includes the resources matching the specified pattern.
-
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 applyincludes
- the include patterns (seeResourcePatternHint
documentation)- Returns:
this
, to facilitate method chaining
-
includes
Includes the resources matching the specified pattern.- Parameters:
includes
- the include patterns (seeResourcePatternHint
documentation)- Returns:
this
, to facilitate method chaining
-
excludes
Exclude resources matching the specified pattern.- Parameters:
reachableType
- the type that should be reachable for this hint to applyexcludes
- the excludes pattern (seeResourcePatternHint
documentation)- Returns:
this
, to facilitate method chaining
-
excludes
Exclude resources matching the specified pattern.- Parameters:
excludes
- the excludes pattern (seeResourcePatternHint
documentation)- Returns:
this
, to facilitate method chaining
-