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

@ConfigMapping specification #232

Merged
merged 1 commit into from
May 2, 2024
Merged

Conversation

radcortez
Copy link
Contributor

No description provided.

@radcortez radcortez merged commit 031d847 into jakartaee:main May 2, 2024
3 checks passed
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD })
public @interface ConfigDefault {
Copy link
Contributor

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?

Copy link

@hantsy hantsy May 2, 2024

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{}
}

Copy link

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jansupol
Copy link
Contributor

jansupol commented May 2, 2024

@radcortez Why was this merged? Did someone approve it?

@radcortez
Copy link
Contributor Author

@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.

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

Successfully merging this pull request may close these issues.

4 participants