类 FilePatternResourceHintsRegistrar.Builder

java.lang.Object
cn.taketoday.aot.hint.support.FilePatternResourceHintsRegistrar.Builder
封闭类:
FilePatternResourceHintsRegistrar

public static final class FilePatternResourceHintsRegistrar.Builder extends Object
  • 字段详细资料

    • classpathLocations

      private final List<String> classpathLocations
    • filePrefixes

      private final List<String> filePrefixes
    • fileExtensions

      private final List<String> fileExtensions
  • 构造器详细资料

    • Builder

      private Builder()
  • 方法详细资料

    • withClasspathLocations

      public FilePatternResourceHintsRegistrar.Builder withClasspathLocations(String... classpathLocations)
      Consider the specified classpath locations.

      A location can either be a special "classpath:" pseudo location or a standard location, such as com/example/resources. An empty String represents the root of the classpath.

      参数:
      classpathLocations - the classpath locations to consider
      返回:
      this builder
      另请参阅:
    • withClasspathLocations

      public FilePatternResourceHintsRegistrar.Builder withClasspathLocations(List<String> classpathLocations)
      Consider the specified classpath locations.

      A location can either be a special "classpath:" pseudo location or a standard location, such as com/example/resources. An empty String represents the root of the classpath.

      参数:
      classpathLocations - the classpath locations to consider
      返回:
      this builder
      另请参阅:
    • withFilePrefixes

      public FilePatternResourceHintsRegistrar.Builder withFilePrefixes(String... filePrefixes)
      Consider the specified file prefixes. Any file whose name starts with one of the specified prefixes is considered. A prefix cannot contain the * character.
      参数:
      filePrefixes - the file prefixes to consider
      返回:
      this builder
      另请参阅:
    • withFilePrefixes

      public FilePatternResourceHintsRegistrar.Builder withFilePrefixes(List<String> filePrefixes)
      Consider the specified file prefixes. Any file whose name starts with one of the specified prefixes is considered. A prefix cannot contain the * character.
      参数:
      filePrefixes - the file prefixes to consider
      返回:
      this builder
      另请参阅:
    • withFileExtensions

      public FilePatternResourceHintsRegistrar.Builder withFileExtensions(String... fileExtensions)
      Consider the specified file extensions. A file extension must start with a . character.
      参数:
      fileExtensions - the file extensions to consider
      返回:
      this builder
      另请参阅:
    • withFileExtensions

      public FilePatternResourceHintsRegistrar.Builder withFileExtensions(List<String> fileExtensions)
      Consider the specified file extensions. A file extension must start with a . character.
      参数:
      fileExtensions - the file extensions to consider
      返回:
      this builder
      另请参阅:
    • build

    • registerHints

      public void registerHints(ResourceHints hints, @Nullable ClassLoader classLoader)
      Register resource hints for the current state of this builder. For each classpath location that resolves against the ClassLoader, files with the configured file prefixes and extensions are registered.
      参数:
      hints - the hints contributed so far for the deployment unit
      classLoader - the classloader, or null if even the system ClassLoader isn't accessible