is there a generic Map strategy for Apache Camel's Bindy format?

十年热恋 提交于 2019-12-11 20:12:37

问题


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.



来源:https://stackoverflow.com/questions/8637539/is-there-a-generic-map-strategy-for-apache-camels-bindy-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!