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

Eliminate Default Fall-back to 'conversionService' from Application Context

    XMLWordPrintable

    Details

    • Type: Refactoring
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.0 M1
    • Component/s: Core
    • Labels:

      Description

      There was really right idea to introduce Spring Integration own 'integrationConversionService'. We did not want to assume that the ConversionService used for dependency injection and bean creation within the container itself would necessarily use the same Converters that are needed for integration flows at runtime. They really are two different concerns.
      The rationale for not falling-back is the same; we create a new DefaultConversionService instead of using one that might have been configured explicitly for use within the BeanFactory. The main idea is that someone may register Converters that are intended for use when wiring Bean constructor-args and properties that would actually produce unintended consequences if used at runtime for Spring Integration expression-evaluation against Messages, etc.
      If on the other hand, someone DOES want to use the BeanFactory's ConversionService for Spring Integration also, they can simply register one line of config with:

      <alias name="conversionService" alias="integrationConversionService"/>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abilan Artem Bilan
              Reporter:
              abilan Artem Bilan
              Votes:
              0 Vote for this issue
              Watchers:
              1 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