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
This
AbstractLocationConfigSourceFactory allows to initialize additional config locations with the
configuration SmallRyeConfig.SMALLRYE_CONFIG_LOCATIONS. The configuration support multiple
locations separated by a comma and each must represent a valid URI.-
Nested Class Summary
Nested classes/interfaces inherited from class io.smallrye.config.AbstractLocationConfigSourceLoader
AbstractLocationConfigSourceLoader.ConfigSourceClassPathConsumer, AbstractLocationConfigSourceLoader.ConfigSourcePathConsumer, AbstractLocationConfigSourceLoader.ConfigurableProfileConfigSourceFactoryNested classes/interfaces inherited from interface io.smallrye.config.ConfigSourceFactory
ConfigSourceFactory.ConfigurableConfigSourceFactory<MAPPING> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanIf 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, tryJarMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.config.ConfigSourceFactory
getPriority
-
Constructor Details
-
AbstractLocationConfigSourceFactory
public AbstractLocationConfigSourceFactory()
-
-
Method Details
-
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
-