Package io.extact.rms.platform.config
Class ResourcePathUnderConfigProvider
java.lang.Object
io.extact.rms.platform.config.ResourcePathUnderConfigProvider
- All Implemented Interfaces:
org.eclipse.microprofile.config.spi.ConfigSourceProvider
public class ResourcePathUnderConfigProvider
extends Object
implements org.eclipse.microprofile.config.spi.ConfigSourceProvider
Provider class that automatically reads the conf file under `mpconfig` path directly under the classpath.
If there is a subfolder, the subfolder is also recursively traced and read.
Also, since this class is instantiated by ServiceLoader, if you want to use it, define this class in `META-INF/services/org.eclipse.microprofile.config.spi.ConfigSourceProvider`
Also, since this class is instantiated by ServiceLoader, if you want to use it, define this class in `META-INF/services/org.eclipse.microprofile.config.spi.ConfigSourceProvider`
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<org.eclipse.microprofile.config.spi.ConfigSource>
getConfigSources
(ClassLoader classLoader)
-
Field Details
-
CONFIG_RESOURCE_PATH
- See Also:
-
SUPPROTED_CONFIG_TYPE
-
SUPPROTED_CONFIG_FILTER
-
-
Constructor Details
-
ResourcePathUnderConfigProvider
public ResourcePathUnderConfigProvider()
-
-
Method Details
-
getConfigSources
public Iterable<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources(ClassLoader classLoader) - Specified by:
getConfigSources
in interfaceorg.eclipse.microprofile.config.spi.ConfigSourceProvider
-