Package io.smallrye.config
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.smallrye.config.AbstractLocationConfigSourceLoader
AbstractLocationConfigSourceLoader.ConfigSourceClassPathConsumer, AbstractLocationConfigSourceLoader.ConfigSourcePathConsumer, AbstractLocationConfigSourceLoader.ConfigurableProfileConfigSourceFactory -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesConfigSourceProvider(String location, ClassLoader classLoader, boolean includeFileSystem) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionclassPathResource(String location, ClassLoader classLoader) Deprecated, for removal: This API element is subject to removal in a future version.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.List<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources(ClassLoader forClassLoader) Deprecated, for removal: This API element is subject to removal in a future version.protected String[]Deprecated, for removal: This API element is subject to removal in a future version.The file extensions to filter the locations to load.protected org.eclipse.microprofile.config.spi.ConfigSourceloadConfigSource(URL url, int ordinal) Deprecated, for removal: This API element is subject to removal in a future version.Loads aConfigSourcefrom anURL.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.resource(String location, ClassLoader classLoader) Deprecated, for removal: This API element is subject to removal in a future version.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.Methods inherited from class io.smallrye.config.AbstractLocationConfigSourceLoader
failOnMissingFile, fallbackToUnknownProtocol, loadConfigSources, loadConfigSources, loadConfigSources, loadConfigSources, tryClassPath, tryHttpResource, tryJar
-
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:
getConfigSourcesin interfaceorg.eclipse.microprofile.config.spi.ConfigSourceProvider
-
getFileExtensions
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractLocationConfigSourceLoaderThe file extensions to filter the locations to load. It does not require to include the dot separator.- Specified by:
getFileExtensionsin classAbstractLocationConfigSourceLoader- 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- Specified by:
loadConfigSourcein classAbstractLocationConfigSourceLoader- Parameters:
url- theURLto load theConfigSource.ordinal- the ordinal of theConfigSource.- Returns:
- the loaded
ConfigSource. - Throws:
IOException- if an error occurred when reading from theURL.
-
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:
tryFileSystemin classAbstractLocationConfigSourceLoader
-
resource
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.
-