Package io.smallrye.config
Class PropertiesLocationConfigSourceFactory
- java.lang.Object
-
- io.smallrye.config.AbstractLocationConfigSourceLoader
-
- io.smallrye.config.AbstractLocationConfigSourceFactory
-
- io.smallrye.config.PropertiesLocationConfigSourceFactory
-
- All Implemented Interfaces:
ConfigSourceFactory
public class PropertiesLocationConfigSourceFactory extends AbstractLocationConfigSourceFactory
-
-
Constructor Summary
Constructors Constructor Description PropertiesLocationConfigSourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<org.eclipse.microprofile.config.spi.ConfigSource>getConfigSources(ConfigSourceContext context)String[]getFileExtensions()The file extensions to filter the locations to load.protected org.eclipse.microprofile.config.spi.ConfigSourceloadConfigSource(URL url, int ordinal)Loads aConfigSourcefrom anURL.-
Methods inherited from class io.smallrye.config.AbstractLocationConfigSourceLoader
fallbackToUnknownProtocol, loadConfigSources, loadConfigSources, loadConfigSources, loadConfigSources, tryClassPath, tryFileSystem, tryHttpResource, tryJar, tryProfiles
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.config.ConfigSourceFactory
getPriority
-
-
-
-
Method Detail
-
getFileExtensions
public 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.
-
getConfigSources
public Iterable<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources(ConfigSourceContext context)
- Specified by:
getConfigSourcesin interfaceConfigSourceFactory- Overrides:
getConfigSourcesin classAbstractLocationConfigSourceFactory
-
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 the theURL.
-
-