Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10908

Introduce DataTypeAware interface and let MessageSupport implement it

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.19.0
    • Fix Version/s: 2.19.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Instead of carrying around the INPUT_TYPE/OUTPUT_TYPE exchange properties, let Message hold the DataType directly as those exchange properties get out of sync when Pipeline copies the message between IN and OUT.

      public interface DataTypeAware {
      
          void setDataType(DataType type);
          
          DataType getDataType();
          
          setBody(Object body, DataType type);
          
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                igarashitm Tomohisa Igarashi
                Reporter:
                igarashitm Tomohisa Igarashi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: