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

Archaius2' @Configuration annotation clashes with Spring's org.springframework.context.annotation.Configuration #716

Open
rgallardo-netflix opened this issue Mar 26, 2024 · 0 comments

Comments

@rgallardo-netflix
Copy link
Contributor

Use of Archaius2 in Spring applications is hampered by the clash between their @Configuration annotation, which marks classes that contain bean definitions, and ours, which marks interfaces that can be instantiated as configuration proxies.

Since Spring has a larger use base, we should adapt and provide a new annotation for this purpose that avoids the name clash. An option would be to adopt the name they use for a similar purpose, @ConfigurationSource. If we choose that path, we should support classes that carry their annotation, in addition to ours.

We must also remain backward compatible with our existing name for at least one more major-version release (ie, we would not retire support for our @Configuration annotation before a hypothetical Archaius 4 release).

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