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