Package io.smallrye.config
Class PropertiesConfigSourceLoader
java.lang.Object
io.smallrye.config.AbstractLocationConfigSourceLoader
io.smallrye.config.PropertiesConfigSourceLoader
-
Nested Class Summary
Nested classes/interfaces inherited from class io.smallrye.config.AbstractLocationConfigSourceLoader
AbstractLocationConfigSourceLoader.ConfigSourceClassPathConsumer, AbstractLocationConfigSourceLoader.ConfigSourcePathConsumer, AbstractLocationConfigSourceLoader.ConfigurableProfileConfigSourceFactory -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]The file extensions to filter the locations to load.static List<org.eclipse.microprofile.config.spi.ConfigSource> inClassPath(String path, int ordinal, ClassLoader loader) static List<org.eclipse.microprofile.config.spi.ConfigSource> inFileSystem(String path, int ordinal, ClassLoader loader) protected org.eclipse.microprofile.config.spi.ConfigSourceloadConfigSource(URL url, int ordinal) Loads aConfigSourcefrom anURL.Methods inherited from class io.smallrye.config.AbstractLocationConfigSourceLoader
failOnMissingFile, fallbackToUnknownProtocol, loadConfigSources, loadConfigSources, loadConfigSources, loadConfigSources, tryClassPath, tryFileSystem, tryHttpResource, tryJar
-
Field Details
-
path
-
ordinal
protected final int ordinal
-
-
Method Details
-
getFileExtensions
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 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.
-
inClassPath
public static List<org.eclipse.microprofile.config.spi.ConfigSource> inClassPath(String path, int ordinal, ClassLoader loader) -
inFileSystem
public static List<org.eclipse.microprofile.config.spi.ConfigSource> inFileSystem(String path, int ordinal, ClassLoader loader)
-