Package io.smallrye.config
Class AbstractLocationConfigSourceFactory
- java.lang.Object
-
- io.smallrye.config.AbstractLocationConfigSourceLoader
-
- io.smallrye.config.AbstractLocationConfigSourceFactory
-
- All Implemented Interfaces:
ConfigSourceFactory
- Direct Known Subclasses:
PropertiesLocationConfigSourceFactory
public abstract class AbstractLocationConfigSourceFactory extends AbstractLocationConfigSourceLoader implements ConfigSourceFactory
ThisAbstractLocationConfigSourceFactoryallows to initialize additional config locations with the configurationSmallRyeConfig.SMALLRYE_CONFIG_LOCATIONS. The configuration support multiple locations separated by a comma and each must represent a validURI.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.smallrye.config.ConfigSourceFactory
ConfigSourceFactory.ConfigurableConfigSourceFactory<MAPPING>
-
-
Constructor Summary
Constructors Constructor Description AbstractLocationConfigSourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanfailOnMissingFile()If the lookup from anURLwhich the schemefile:should fail.Iterable<org.eclipse.microprofile.config.spi.ConfigSource>getConfigSources(ConfigSourceContext context)-
Methods inherited from class io.smallrye.config.AbstractLocationConfigSourceLoader
fallbackToUnknownProtocol, getFileExtensions, loadConfigSource, 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
-
failOnMissingFile
protected boolean failOnMissingFile()
Description copied from class:AbstractLocationConfigSourceLoaderIf the lookup from anURLwhich the schemefile:should fail. By default, a failed load does not throw an exception. In situations where the resource is required, a return value oftrueenables the exception.- Overrides:
failOnMissingFilein classAbstractLocationConfigSourceLoader- Returns:
trueif file lookup should fail with an exception,falseotherwise.
-
getConfigSources
public Iterable<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources(ConfigSourceContext context)
- Specified by:
getConfigSourcesin interfaceConfigSourceFactory
-
-