Class CdiConfigSourceProvider

  • All Implemented Interfaces:
    org.eclipse.microprofile.config.spi.ConfigSourceProvider

    public class CdiConfigSourceProvider
    extends Object
    implements org.eclipse.microprofile.config.spi.ConfigSourceProvider
    Bridges the gap between ServiceLoader and CDI, by registering itself as a service and using CDI to discover available CDI-managed ConfigSources.
    Since:
    20.06
    Author:
    Aleks Seovic 2020.06.11
    • Constructor Detail

      • CdiConfigSourceProvider

        public CdiConfigSourceProvider()
    • Method Detail

      • getConfigSources

        public Iterable<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources​(ClassLoader forClassLoader)
        Specified by:
        getConfigSources in interface org.eclipse.microprofile.config.spi.ConfigSourceProvider