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

Option: Allow default methods to be used to provide default values for the configuration #20

Open
auriium opened this issue Apr 30, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@auriium
Copy link

auriium commented Apr 30, 2021

Currently, the @defaultOption annotation is sloppy at best for providing non-primitive default objects for configuration values. I propose the use (or at least the option to use) default methods to return objects as default values. This is supplemented by the fact that customized serializers already exist in DazzleConf and more importantly already support deserialization of objects. The only issue being the use of default methods as helper methods in configuration classes, for which i propose an annotation that would allow a default method to be ignored, or a boolean that controls configuration reading accepting default methods as default values.

@A248 A248 added this to the 2.0.0 milestone Apr 30, 2021
@A248 A248 added the enhancement New feature or request label Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants