Class 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 Detail

      • PropertiesConfigSourceProvider

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

      • 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
      • 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
      • 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.