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

Possibility to get only those properties that explicitly declared in MyProperties interface #405

Open
Achitheus opened this issue Feb 10, 2024 · 0 comments

Comments

@Achitheus
Copy link

Achitheus commented Feb 10, 2024

I read documentation and found this option:

Map<String, String> properties = new TreeMap<>();
accessible.fill(properties);
properties.forEach(
            (key, value) -> // whatever
);

where accessible is MyPropertiesInterface which extendsAccessible instead of extendingConfig directlly.
But this approach just gives all available properties from all declared @Config.Sources no matter which properties declared explicitly in the interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant