-
Notifications
You must be signed in to change notification settings - Fork 16
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
@ConfigMapping specification #232
Conversation
2453402
to
21320e6
Compare
@Documented | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ ElementType.METHOD }) | ||
public @interface ConfigDefault { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about ConfigValue or ConfigDefaultValue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is only available in a @ConfigMapping
class/interface, I would like move these annotations(ConfigName
, ConfigDefault
) into ConfigMapping
and remove the Config
prefix, eg. @Key
, @DefaultValue
.
@interface ConfigMapping{
@interface Key{}
@interface DefaultValue{}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a Config
prefix everywhere make the codes looks tedious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable. I'll have a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@radcortez Why was this merged? Did someone approve it? |
We discussed the PR during two meetings, and I thought there were no objections to what was being proposed. Sorry for moving ahead; I wanted to have the code merged so I could keep moving forward with some consistency work and other proposals that impact the general codebase. Feel free to point out any issues and I'm happy to fix them in another PR. |
No description provided.