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

GH-3483: Allow @Override of KafkaAdmin createAdmin() #3484

Merged

Conversation

anders-swanson
Copy link
Contributor

Fixes #3483

Changes the KafkaAdmin#createAdmin() method to be protected, returning the Admin interface instead of the AdminClient class.

This change allows user of spring-kafka to supply their own Admin interface implementations by extending the KafkaAdmin class.

Copy link
Contributor

@sobychacko sobychacko left a comment

Choose a reason for hiding this comment

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

  1. Please add author tag to the classes you modified.
  2. I think since we are exposing the createAdmin method as part of the KafkaAdmin API, we need to add some ref docs for it.
  3. Also, add a section in whats-new.

@anders-swanson
Copy link
Contributor Author

@sobychacko thanks for the review, I've updated the PR with the requested documentation 👍

@sobychacko sobychacko merged commit 8da1aa3 into spring-projects:main Oct 4, 2024
3 checks passed
@anders-swanson anders-swanson deleted the kafka-admin-create-override branch October 4, 2024 19:03
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.

Allow @Override of KafkaAdmin createAdmin()
2 participants