forked from spring-projects/spring-kafka
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spring-projectsGH-3467: Fix `KafkaListenerAnnotationBeanPostProcessor…
…` for early BF access Fixes: spring-projects#3467 The `KafkaListenerAnnotationBeanPostProcessor.afterPropertiesSet()` get access to `BeanFactory` for other beans which causes a warning into logs like: ``` is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor ``` The rule of thumb is to not have any bean factory access from `BeanPostProcessor` initialization phase * Fix `KafkaListenerAnnotationBeanPostProcessor` to `buildEnhancer()` i lazy manner. Therefore remove an `afterPropertiesSet()` altogether **Auto-cherry-pick to `3.2.x` & `3.1.x`**
- Loading branch information
1 parent
4dc0976
commit a005740
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters