Skip to content

GH-2478: Improve RetryTopicComponentFactory Conf #2480

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

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

garyrussell
Copy link
Contributor

Resolves #2478

Allow users to define a RetryTopicComponentFactory bean for use in infrastructure bean definitions.

Previously, although createComponentFactory() can be overridden, it is called early in the class lifecycle and can't have any dependencies on Spring beans.

Now, if the application context contains a unique bean of this type, it is used instead.

Cannot back port due to breaking API changes; work around for 2.9.x is to override one or more of destinationTopicResolver, kafkaConsumerBackoffManager and/or retryTopicConfigurer bean definition methods.

Resolves spring-projects#2478

Allow users to define a `RetryTopicComponentFactory` bean for use in
infrastructure bean definitions.

Previously, although `createComponentFactory()` can be overridden, it is
called early in the class lifecycle and can't have any dependencies on
Spring beans.

Now, if the application context contains a unique bean of this type, it
is used instead.

**Cannot back port due to breaking API changes; work around for 2.9.x is
to override one or more of `destinationTopicResolver`,
`kafkaConsumerBackoffManager` and/or `retryTopicConfigurer` bean definition
methods.**
@artembilan artembilan merged commit 0723add into spring-projects:main Nov 14, 2022
@garyrussell garyrussell deleted the GH-2478 branch November 15, 2022 20:22
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.

Make RetryTopicConfigurationSupport initialize RetryTopicComponentFactory lazily
2 participants