Package io.smallrye.config
Class PropertiesConfigSourceLoader
- java.lang.Object
-
- io.smallrye.config.AbstractLocationConfigSourceLoader
-
- io.smallrye.config.PropertiesConfigSourceLoader
-
public class PropertiesConfigSourceLoader extends AbstractLocationConfigSourceLoader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]getFileExtensions()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, tryProfiles
-
-
-
-
Field Detail
-
path
protected final String path
-
ordinal
protected final int ordinal
-
-
Method Detail
-
getFileExtensions
protected String[] 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)
-
-