Class FilePatternResourceHintsRegistrar

java.lang.Object
org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar

public class FilePatternResourceHintsRegistrar extends Object
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 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 names
      locations - the classpath locations
      extensions - the file extensions (starts with a dot)
  • Method Details