Class PropertiesConfigSourceProvider

java.lang.Object
io.smallrye.config.AbstractLocationConfigSourceLoader
io.smallrye.config.PropertiesConfigSourceProvider
All Implemented Interfaces:
org.eclipse.microprofile.config.spi.ConfigSourceProvider

@Deprecated(forRemoval=true) public class PropertiesConfigSourceProvider extends AbstractLocationConfigSourceLoader implements org.eclipse.microprofile.config.spi.ConfigSourceProvider
Deprecated, for removal: This API element is subject to removal in a future version.
Author:
Jeff Mesnil (c) 2017 Red Hat inc.
  • Constructor Details

    • PropertiesConfigSourceProvider

      public PropertiesConfigSourceProvider(String location, ClassLoader classLoader, boolean includeFileSystem)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getConfigSources

      public List<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources(ClassLoader forClassLoader)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getConfigSources in interface org.eclipse.microprofile.config.spi.ConfigSourceProvider
    • getFileExtensions

      protected String[] getFileExtensions()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: AbstractLocationConfigSourceLoader
      The file extensions to filter the locations to load. It does not require to include the dot separator.
      Specified by:
      getFileExtensions in class AbstractLocationConfigSourceLoader
      Returns:
      an array with the file extensions.
    • loadConfigSource

      protected org.eclipse.microprofile.config.spi.ConfigSource loadConfigSource(URL url, int ordinal) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: AbstractLocationConfigSourceLoader
      Loads a ConfigSource from an URL. Implementations must construct the ConfigSource to load.
      Specified by:
      loadConfigSource in class AbstractLocationConfigSourceLoader
      Parameters:
      url - the URL to load the ConfigSource.
      ordinal - the ordinal of the ConfigSource.
      Returns:
      the loaded ConfigSource.
      Throws:
      IOException - if an error occurred when reading from the URL.
    • tryFileSystem

      protected List<org.eclipse.microprofile.config.spi.ConfigSource> tryFileSystem(URI uri, int ordinal)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      tryFileSystem in class AbstractLocationConfigSourceLoader
    • resource

      public static PropertiesConfigSourceProvider resource(String location, ClassLoader classLoader)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • classPathResource

      public static PropertiesConfigSourceProvider classPathResource(String location, ClassLoader classLoader)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • propertiesSources

      public static List<org.eclipse.microprofile.config.spi.ConfigSource> propertiesSources(String location, ClassLoader classLoader)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • classPathSources

      public static List<org.eclipse.microprofile.config.spi.ConfigSource> classPathSources(String location, ClassLoader classLoader)
      Deprecated, for removal: This API element is subject to removal in a future version.