question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability for ConfigSourceProvider to use Config

See original GitHub issue

It would be nice if it was possible for ConfigSourceProvider instances to read the current Config of higher ordinal sources for use in defining it.

For instance, a config property in system or microprofile-config.properties that specifies a list of directories that contain config elements, which a ConfigSourceProvider can reference to retrieve. At present there’s no way to do this, meaning values need to be hard coded into the instance directly as to where something might be.

Might require a “piecemeal” construction of Config so that each lower ordinal can take the Config up to that point and use it

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:37 (35 by maintainers)

github_iconTop GitHub Comments

1reaction
radcortezcommented, May 25, 2020

Implemented a feature in SmallRye Config to support this: https://github.com/smallrye/smallrye-config/pull/313

1reaction
radcortezcommented, Jan 24, 2020

I understand. So, you think that both should different solutions? Ideally if we could find something that works for both it would be great, but yes, in CDI it might be tricky.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extending Configuration Support - Quarkus
ConfigSourceProvider . Each implementation requires registration via the ServiceLoader mechanism, either in META-INF/services/org.eclipse.microprofile.config.
Read more >
ConfigSourceProvider (MicroProfile Config API) - javadoc.io
A provider for configuration source instances. Implementations of this interface may supply zero or more configuration source instances for a given ...
Read more >
Custom - SmallRye Config
A custom ConfigSource requires an implementation of org.eclipse.microprofile.config.spi.ConfigSource or org.eclipse.microprofile.config.spi.ConfigSourceProvider ...
Read more >
Chapter 3. Administer MicroProfile in JBoss EAP
Enable the microprofile-opentracing-smallrye subsystem using the following ... If you want to use a config-source-provider from the org.example module, ...
Read more >
MicroProfile – Atbash blog
The ability to define configuration values for your application outside the deployment ... Since MicroProfile Config 3.0 is using the Jakarta namespace, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found