Class FilePatternResourceHintsRegistrar
java.lang.Object
org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar
Register the necessary resource hints for loading files from the classpath,
based on file name prefixes and file extensions with convenience to support
multiple classpath locations.
Only registers hints for matching classpath locations, which allows for several locations to be provided without contributing unnecessary hints.
- Since:
- 6.0
- Author:
- Stephane Nicoll, Sam Brannen, Juergen Hoeller
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder forFilePatternResourceHintsRegistrar
. -
Method Summary
Modifier and TypeMethodDescriptionforClassPathLocations
(String... classpathLocations) Configure the registrar with the specified classpath locations.forClassPathLocations
(List<String> classpathLocations) Configure the registrar with the specified classpath locations.
-
Method Details
-
forClassPathLocations
public static FilePatternResourceHintsRegistrar.Builder forClassPathLocations(String... classpathLocations) Configure the registrar with the specified classpath locations.- Parameters:
classpathLocations
- the classpath locations- Returns:
- a
FilePatternResourceHintsRegistrar.Builder
to further configure the registrar - Since:
- 6.0.12
- See Also:
-
forClassPathLocations
public static FilePatternResourceHintsRegistrar.Builder forClassPathLocations(List<String> classpathLocations) Configure the registrar with the specified classpath locations.- Parameters:
classpathLocations
- the classpath locations- Returns:
- a
FilePatternResourceHintsRegistrar.Builder
to further configure the registrar - Since:
- 6.0.12
- See Also:
-