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

camel-main - Properties ordering should use #class: first

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      camel-kafka-connector does this

              // reordering properties to place the one starting with "#class:" first
              LinkedHashMap<String, String> orderedProps = new LinkedHashMap<>();
              props.keySet().stream()
                      .filter(k -> props.get(k).startsWith("#class:"))
                      .forEach(k -> orderedProps.put(k, props.get(k)));
              props.keySet().stream()
                      .filter(k -> !props.get(k).startsWith("#class:"))
                      .forEach(k -> orderedProps.put(k, props.get(k)));
      

      Seems like a good idea to make camel-main resolve the class first so any nested properties can be set on the created class.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: