Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read prefixed properties into Properties/Map #759

Open
guykatz opened this issue Oct 25, 2022 · 0 comments
Open

read prefixed properties into Properties/Map #759

guykatz opened this issue Oct 25, 2022 · 0 comments
Labels
use case 💡 An issue which illustrates a desired use case for the specification
Milestone

Comments

@guykatz
Copy link

guykatz commented Oct 25, 2022

in a recent youtube vid (quarkus insights 103) concentrating on debezium. a live code demo held there with usage of MP config demonstrated a missing use case from the specification (it was a side effect of the demo not a purpose)
generally speaking, at times, when dealing with property files config sources (and maybe other config source too), having prefixed properties, while NOT knowing in advance the amount of prefixed properties or their names, there is a need to read these properties 'blindly' into a Properties like object.

as an application developer, I want to be able to inject prefixed properties into Map/Properties Object
@ConfigProperties(prefix = "server")
Properties props;

...which enables me to:

read all preperties with a prefix (e.g: 'server') and using the props object and a configuration to another object or anyway I choose to.

link to the specific time where the bebezium presenter had to write explicit MP Config code programatic to achieve a work around can be found here: https://youtu.be/MQR1SLJVpgM?t=1335

@guykatz guykatz added the use case 💡 An issue which illustrates a desired use case for the specification label Oct 25, 2022
@guykatz guykatz changed the title read prefixed properties into Properties/Map like Objects read prefixed properties into Properties/Map Oct 25, 2022
@Emily-Jiang Emily-Jiang added this to the Config 4.0 milestone Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
use case 💡 An issue which illustrates a desired use case for the specification
Projects
None yet
Development

No branches or pull requests

2 participants