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

Quarkus pub sub producers #728

Merged

Conversation

jfbenckhuijsen
Copy link
Contributor

@loicmathieu Cleaning up some old stuff for the new year. :)

This PR adds the SubscriptionAdminClient and TopicAdminClient as CDI beans for some more advanced usage apart from the stuff offered by QuarkusPubSub.

Don't know if we want this in there, if not lemme know and I'll throw it away.

@jfbenckhuijsen jfbenckhuijsen requested a review from a team as a code owner January 3, 2025 14:14
@loicmathieu
Copy link
Collaborator

I think it's a great addition (and should be documented somewhere).

But I'd rather add them in a standard factory class as we do for eg for Storage: https://github.com/quarkiverse/quarkus-google-cloud-services/blob/main/storage/runtime/src/main/java/io/quarkiverse/googlecloudservices/storage/runtime/StorageProducer.java

@jfbenckhuijsen
Copy link
Contributor Author

Moved to separate bean and docs added.

Copy link
Collaborator

@loicmathieu loicmathieu left a comment

Choose a reason for hiding this comment

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

LGTM, it made me learn a new trick today, first time I see the usage of @Disposes ;)

@loicmathieu loicmathieu merged commit a22da44 into quarkiverse:main Jan 3, 2025
1 check passed
@jfbenckhuijsen
Copy link
Contributor Author

Haha, also had to look it up when building this code initially ;)

@jfbenckhuijsen jfbenckhuijsen deleted the quarkus-pub-sub-producers branch January 3, 2025 16:08
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.

2 participants