You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation of config sources for classpath resources only uses the first resource found.
We should support (both from meta-config and from a builder) adding config source for each instance of a resource on a classpath.
Usage: microprofile-config.properties already requires this approach. We can do this using a builder through ConfigSources.classpathAll("META-INF/microprofile-config.properties"), we must be able to do the same thing through meta-config
The multi would tell meta configuration that this would return multiple instances of a config source.
The source-type would point to a named ConfigSourceProvider.
This would probably require additional method in ConfigSourceProvider: List<ConfigSource> createMulti(String type, Config metaConfig)
The text was updated successfully, but these errors were encountered:
This is now working.
When using meta configuration, use multi-source: true to mark the source as a multiple source.
When using a builder, there are new methods on ClasspathConfigSource:
createAll(Config) to load all sources from meta configuration
createAll(String) to load all resource instances from the classpath
Current implementation of config sources for classpath resources only uses the first resource found.
We should support (both from meta-config and from a builder) adding config source for each instance of a resource on a classpath.
Usage:
microprofile-config.properties
already requires this approach. We can do this using a builder throughConfigSources.classpathAll("META-INF/microprofile-config.properties")
, we must be able to do the same thing throughmeta-config
Example
meta-config
(an option how to implement):The
multi
would tell meta configuration that this would return multiple instances of a config source.The
source-type
would point to a named ConfigSourceProvider.This would probably require additional method in
ConfigSourceProvider
:List<ConfigSource> createMulti(String type, Config metaConfig)
The text was updated successfully, but these errors were encountered: