Top Description Methods
org.eclipse.microprofile.config.spi

public Interface ConfigSourceProvider


A 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 java.util.ServiceLoader mechanism and can be registered by providing a META-INF/services/org.eclipse.microprofile.config.spi.ConfigSourceProvider resource which contains the fully qualified class name of the custom ConfigSourceProvider implementation.

Authors
Mark Struberg, Gerhard Petracek, Emily Jiang

Method Summary

Modifier and TypeMethod and Description
public Iterable<ConfigSource>

Returns:

the ConfigSource instances to register to the configuration
getConfigSources
(ClassLoader
the class loader which should be used for discovery and resource loading purposes
forClassLoader
)

Return the ConfigSource instances that are provided by this provider.

Method Detail

getConfigSourcesback to summary
public Iterable<ConfigSource> getConfigSources(ClassLoader forClassLoader)

Return the ConfigSource instances that are provided by this provider. The Iterable contains a fixed number of configuration sources, determined at application start time, and the config sources themselves may be static or dynamic. An empty Iterable may be returned if no sources are to be provided.

Parameters
forClassLoader:ClassLoader

the class loader which should be used for discovery and resource loading purposes

Returns:Iterable<ConfigSource>

the ConfigSource instances to register to the configuration