类 FilePatternResourceHintsRegistrar
java.lang.Object
cn.taketoday.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.
- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Sam Brannen, Harry Yang
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明forClassPathLocations(String... classpathLocations) Configure the registrar with the specified classpath locations.forClassPathLocations(List<String> classpathLocations) Configure the registrar with the specified classpath locations.voidregisterHints(ResourceHints hints, ClassLoader classLoader) validateClasspathLocations(List<String> classpathLocations) validateFileExtensions(List<String> fileExtensions) validateFilePrefixes(List<String> filePrefixes)
-
字段详细资料
-
classpathLocations
-
filePrefixes
-
fileExtensions
-
-
构造器详细资料
-
FilePatternResourceHintsRegistrar
public FilePatternResourceHintsRegistrar(List<String> filePrefixes, List<String> classpathLocations, List<String> fileExtensions) Create a new instance for the specified file prefixes, classpath locations, and file extensions.- 参数:
filePrefixes- the file prefixesclasspathLocations- the classpath locationsfileExtensions- the file extensions (starting with a dot)
-
-
方法详细资料
-
registerHints
-
forClassPathLocations
public static FilePatternResourceHintsRegistrar.Builder forClassPathLocations(String... classpathLocations) Configure the registrar with the specified classpath locations.- 参数:
classpathLocations- the classpath locations- 返回:
- a
FilePatternResourceHintsRegistrar.Builderto further configure the registrar - 另请参阅:
-
forClassPathLocations
public static FilePatternResourceHintsRegistrar.Builder forClassPathLocations(List<String> classpathLocations) Configure the registrar with the specified classpath locations.- 参数:
classpathLocations- the classpath locations- 返回:
- a
FilePatternResourceHintsRegistrar.Builderto further configure the registrar - 另请参阅:
-
validateClasspathLocations
-
validateFilePrefixes
-
validateFileExtensions
-