Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4517

Refactor IntegrationRegistrar to register beans as late as possible

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0.7
    • Fix Version/s: 5.1 M2
    • Component/s: Core
    • Labels:

      Description

      The problem that IntegrationRegistrar adds beans during the @EnableIntegration processing, leaving user-declared beans into the later phase, therefore we end-up with the use-case when we need to allow to override beans in the BeanFactory. Since Spring Boot 2.1 this option is disabled by default, therefore we need to reconsider our logic.

      Looks like the best solution is to move bean definition from the IntegrationRegistrar into some BeanFactoryPostProcessor, e.g. existing DefaultConfiguringBeanFactoryPostProcessor.

      The problem that we need to be careful for the parent-child scenarios and consider to register some beans in the child context again to allow to process its own behavior.

        Attachments

          Activity

            People

            • Assignee:
              abilan Artem Bilan
              Reporter:
              abilan Artem Bilan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: