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`
  • Field Details

    • CONFIG_RESOURCE_PATH

      public static final String CONFIG_RESOURCE_PATH
      See Also:
    • SUPPROTED_CONFIG_TYPE

      public static final List<String> SUPPROTED_CONFIG_TYPE
    • SUPPROTED_CONFIG_FILTER

      public static final Predicate<Object> 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 interface org.eclipse.microprofile.config.spi.ConfigSourceProvider