Skip to content

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.

Signed-off-by: Anders Swanson <anders.swanson@oracle.com>
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 and others added 3 commits October 3, 2024 07:48
Signed-off-by: Anders Swanson <anders.swanson@oracle.com>
Signed-off-by: Anders Swanson <anders.swanson@oracle.com>
@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