is there a generic Map strategy for Apache Camel&#

2019-09-18 16:06发布

问题:

Is there a builtin or standard strategy for Apache Camel's Bindy data format to marshal to/from java.util.Maps? From what I can tell, the strategy can only be annotated into POJOs such that certain Bean properties map to/from CSV fields.

Camel's CSV data format supports marshaling to/from Maps (whose keys correspond with CSV headers and values correspond with CSV fields). Unfortunately, it depends on Apache Commons CSV, which is still incubating and not yet active and mature enough to be reliable.

回答1:

No. Bindy is for binding to/from java beans.

You can use other components that maps to Map structures, such as camel-csv, camel-flatpack.