Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-891

Switch constructor injection of the repository interface for repository factory beans

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13 RC1 (Ingalls)
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Ingalls M1, Hopper SR3 / Gosling SR5, Kay M1, Ingalls RC1

      Description

      The resolution of the actual bean type produced by repository factories is currently implemented by a predicting BeanPostProcessor. That causes issues for BeanFactoryPostProcessor instances that want to tweak the application context setup by making type based decisions. An instance of that is the automatic replacement of beans with mock instances in Spring Boot 1.4.

      If we switched to constructor injection of the repository interface into the factory, the repository interface would even be handed to it for type predicting purposes on the actual factory. We could get rid off the special BeanPostProcessor and make the Boot use case work.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olivergierke Oliver Drotbohm
                Reporter:
                olivergierke Oliver Drotbohm
                Last updater:
                Oliver Drotbohm
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: