Interface ConfigSourceProvider
-
public interface ConfigSourceProviderA provider for configuration source instances.Implementations of this interface may supply zero or more configuration source instances for a given application (as defined by the application's
ClassLoader).Instances of this interface will be discovered via the
ServiceLoadermechanism and can be registered by providing aMETA-INF/services/org.eclipse.microprofile.config.spi.ConfigSourceProviderresource which contains the fully qualified class name of the customConfigSourceProviderimplementation.- Author:
- Mark Struberg, Gerhard Petracek, Emily Jiang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<ConfigSource>getConfigSources(ClassLoader forClassLoader)Return theConfigSourceinstances that are provided by this provider.
-
-
-
Method Detail
-
getConfigSources
Iterable<ConfigSource> getConfigSources(ClassLoader forClassLoader)
Return theConfigSourceinstances that are provided by this provider. TheIterablecontains a fixed number of configuration sources, determined at application start time, and the config sources themselves may be static or dynamic. An emptyIterablemay be returned if no sources are to be provided.- Parameters:
forClassLoader- the class loader which should be used for discovery and resource loading purposes- Returns:
- the
ConfigSourceinstances to register to the configuration
-
-