public ConfigExtension()

in impl/src/main/java/org/apache/geronimo/config/cdi/ConfigExtension.java [82:93]


    public ConfigExtension() {
        final Config raw = ConfigProvider.getConfig();
        // ensure to store the ref the whole lifecycle, java gc is aggressive now
        this.config = ConfigImpl.class.cast(ConfigImpl.class.isInstance(raw) ?
                raw : // custom overrided config, unlikely but possible in wrong setups
                new DefaultConfigBuilder()
                        .forClassLoader(Thread.currentThread().getContextClassLoader())
                        .addDefaultSources()
                        .addDiscoveredSources()
                        .addDiscoveredConverters()
                        .build());
    }