Class FilePatternResourceHintsRegistrar
java.lang.Object
org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar
Register the necessary resource hints for loading files from the classpath.
Candidates are identified by a file name, a location, and an extension. The location can be the empty string to refer to the root of the classpath.
- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerHints
(ResourceHints hints, ClassLoader classLoader)
-
Constructor Details
-
FilePatternResourceHintsRegistrar
public FilePatternResourceHintsRegistrar(List<String> names, List<String> locations, List<String> extensions) Create a new instance for the specified file names, locations, and file extensions.- Parameters:
names
- the file nameslocations
- the classpath locationsextensions
- the file extensions (starts with a dot)
-
-
Method Details
-
registerHints
-