Spring Integration
  1. Spring Integration
  2. INT-434

The <router/> element should support a "ref" without a "method"

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0 RC1
    • Component/s: Core
    • Labels:
      None

      Description

      If the "ref" is a reference to a subclass of AbstractMessageRouter, this should resolve automatically (e.g. PayloadTypeRouter).

      Otherwise, the method should be resolved if there is a single method annotated with @Router, or finally, if there is a single public method. This is consistent with Splitter and Service Activator - both of which have had this functionality added recently.

      This will require a RouterFactoryBean (similar to SplitterFactoryBean).

      See discussion on the forum here: http://forum.springframework.org/showthread.php?t=61772

        Issue Links

          Activity

          Show
          Mark Fisher added a comment - https://fisheye.springframework.org/changelog/spring-integration?cs=1515

            People

            • Assignee:
              Mark Fisher
              Reporter:
              Mark Fisher
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 1h
                1h