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

MessagingMethodInvokerHelper should allow for injection of MessageHandlerMethodFactory

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 5.1.2
    • Component/s: Core
    • Labels:

      Description

      Currently MessagingMethodInvokerHelper creates a new instance of messageHandlerMethodFactory. However in some environments (e.g., Spring Cloud Stream) that provide additional message handlers, there may already be an instance of messageHandlerMethodFactory as a bean. It would be nice if such instance could be shared, specifically to ensure consistency around the list of argument resolvers. In that case MessagingMethodInvokerHelper can do a look up in BF and see if messageHandlerMethodFactory exist and use it or create new one if it does not.

      Also, to avoid conflicts may be have such instance under well known bean name. For example, integrationMessageHandlerMethodFactory.

        Attachments

          Activity

            People

            • Assignee:
              olegz olegz
              Reporter:
              olegz olegz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: