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

Support annotations for ObjectProperties' fields #23

Open
snripa opened this issue Sep 21, 2017 · 1 comment
Open

Support annotations for ObjectProperties' fields #23

snripa opened this issue Sep 21, 2017 · 1 comment

Comments

@snripa
Copy link
Contributor

snripa commented Sep 21, 2017

Currently the way you define the ObjectProperty is to provide some binding map that binds field names to property keys.

Along with this approach we can support some annotation based approach, like:

class ConfigPropPojo{
    @ConfigKey("org.proj.alias")
    String alias;
    @ConfigKey("org.proj.timeout")
    Integer timeout;
}
@antonkharenko
Copy link
Member

@snripa I was thinking either we can reuse some existing JDK annotations for this purpose instead of adding new?

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

No branches or pull requests

2 participants