Class SmallRyeConfigProviderResolver

java.lang.Object
org.eclipse.microprofile.config.spi.ConfigProviderResolver
io.smallrye.config.SmallRyeConfigProviderResolver

public class SmallRyeConfigProviderResolver extends org.eclipse.microprofile.config.spi.ConfigProviderResolver
Author:
Jeff Mesnil (c) 2017 Red Hat inc., David M. Lloyd
  • Constructor Details

    • SmallRyeConfigProviderResolver

      public SmallRyeConfigProviderResolver()
  • Method Details

    • getConfig

      public Config getConfig()
      Specified by:
      getConfig in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
    • getConfig

      public Config getConfig(ClassLoader classLoader)
      Specified by:
      getConfig in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
    • get

      public SmallRyeConfig get()
      Get a SmallRyeConfig instance for the current Thread.getContextClassLoader().
      Returns:
      the SmallRyeConfig instance for the thread context class loader
      Throws:
      IllegalArgumentException - if the config is not registered for the thread context class loader
    • get

      public SmallRyeConfig get(ClassLoader classLoader)
      Get a SmallRyeConfig instance for the specified ClassLoader.
      Returns:
      the SmallRyeConfig instance for the specified class loader
      Throws:
      IllegalArgumentException - if the config is not registered for the thread context class loader
    • getBuilder

      public SmallRyeConfigBuilder getBuilder()
      Specified by:
      getBuilder in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
    • registerConfig

      public void registerConfig(org.eclipse.microprofile.config.Config config, ClassLoader classLoader)
      Specified by:
      registerConfig in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
    • releaseConfig

      public void releaseConfig(org.eclipse.microprofile.config.Config config)
      Specified by:
      releaseConfig in class org.eclipse.microprofile.config.spi.ConfigProviderResolver
    • releaseConfig

      public void releaseConfig(ClassLoader classLoader)