Only registers hints for matching classpath locations, which allows for several locations to be provided without contributing unnecessary hints.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | FilePatternResourceHintsRegistrar(List<String>
the file prefixes filePrefixes, List<String> the classpath locations classpathLocations, List<String> the file extensions (starting with a dot) fileExtensions)
Deprecated
for removal since 6.0.12. as of 6.0.12 in favor of the builder
Create a new instance for the specified file prefixes, classpath locations,
and file extensions.
|
| Modifier and Type | Method and Description |
|---|---|
| public static FilePatternResourceHintsRegistrar. | Returns: aBuilder to further configure the registrarthe classpath locations classpathLocations)Configure the registrar with the specified classpath locations. |
| public static FilePatternResourceHintsRegistrar. | Returns: aBuilder to further configure the registrarthe classpath locations classpathLocations)Configure the registrar with the specified classpath locations. |
| public void | |
| private static List | |
| private static List | |
| private static List |
| classpathLocations | back to summary |
|---|---|
| private final List<String> classpathLocations | |
| fileExtensions | back to summary |
|---|---|
| private final List<String> fileExtensions | |
| filePrefixes | back to summary |
|---|---|
| private final List<String> filePrefixes | |
| FilePatternResourceHintsRegistrar | back to summary |
|---|---|
| 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. | |
| forClassPathLocations | back to summary |
|---|---|
| public static FilePatternResourceHintsRegistrar. Configure the registrar with the specified classpath locations.
| |
| forClassPathLocations | back to summary |
|---|---|
| public static FilePatternResourceHintsRegistrar. Configure the registrar with the specified classpath locations.
| |
| registerHints | back to summary |
|---|---|
| public void registerHints(ResourceHints hints, ClassLoader classLoader)
Deprecated for removal since 6.0.12.
| |
| validateClasspathLocations | back to summary |
|---|---|
| private static List | |
| validateFileExtensions | back to summary |
|---|---|
| private static List | |
| validateFilePrefixes | back to summary |
|---|---|
| private static List | |
FilePatternResourceHintsRegistrar.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private FilePatternResourceHintsRegistrar | |
| public void | registerHints(ResourceHints
the hints contributed so far for the deployment unit hints, ClassLoader the classloader, or classLoader)null if even the system
ClassLoader isn't accessibleRegister resource hints for the current state of this builder. |
| public FilePatternResourceHintsRegistrar. | Returns: this builderthe classpath locations to consider classpathLocations)Consider the specified classpath locations. |
| public FilePatternResourceHintsRegistrar. | Returns: this builderthe classpath locations to consider classpathLocations)Consider the specified classpath locations. |
| public FilePatternResourceHintsRegistrar. | Returns: this builderthe file extensions to consider fileExtensions)Consider the specified file extensions. |
| public FilePatternResourceHintsRegistrar. | Returns: this builderthe file extensions to consider fileExtensions)Consider the specified file extensions. |
| public FilePatternResourceHintsRegistrar. | Returns: this builderthe file prefixes to consider filePrefixes)Consider the specified file prefixes. |
| public FilePatternResourceHintsRegistrar. | Returns: this builderthe file prefixes to consider filePrefixes)Consider the specified file prefixes. |
| classpathLocations | back to summary |
|---|---|
| private final List<String> classpathLocations | |
| fileExtensions | back to summary |
|---|---|
| private final List<String> fileExtensions | |
| filePrefixes | back to summary |
|---|---|
| private final List<String> filePrefixes | |
| Builder | back to summary |
|---|---|
| private Builder() | |
| build | back to summary |
|---|---|
| private FilePatternResourceHintsRegistrar build() | |
| registerHints | back to summary |
|---|---|
| public void registerHints(ResourceHints hints, ClassLoader classLoader) Register resource hints for the current state of this builder. For each
classpath location that resolves against the
| |
| withClasspathLocations | back to summary |
|---|---|
| public FilePatternResourceHintsRegistrar. Consider the specified classpath locations. A location can either be a special classpath:
pseudo location or a standard location, such as
| |
| withClasspathLocations | back to summary |
|---|---|
| public FilePatternResourceHintsRegistrar. Consider the specified classpath locations. A location can either be a special classpath:
pseudo location or a standard location, such as
| |
| withFileExtensions | back to summary |
|---|---|
| public FilePatternResourceHintsRegistrar. Consider the specified file extensions. A file extension must start with a
| |
| withFileExtensions | back to summary |
|---|---|
| public FilePatternResourceHintsRegistrar. Consider the specified file extensions. A file extension must start with a
| |
| withFilePrefixes | back to summary |
|---|---|
| public FilePatternResourceHintsRegistrar. Consider the specified file prefixes. Any file whose name starts with one
of the specified prefixes is considered. A prefix cannot contain the
| |
| withFilePrefixes | back to summary |
|---|---|
| public FilePatternResourceHintsRegistrar. Consider the specified file prefixes. Any file whose name starts with one
of the specified prefixes is considered. A prefix cannot contain the
| |