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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • 3.5.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: