是否有适用于 Apache Camel 的 Bindy 格式的通用 Map 策略? [英] is there a generic Map strategy for Apache Camel's Bindy format?

查看:22
本文介绍了是否有适用于 Apache Camel 的 Bindy 格式的通用 Map 策略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于 Apache Camel 的 Bindy 数据格式是否有内置或标准策略来编组到/从java.util.Maps?据我所知,该策略只能注释到 POJO 中,以便某些 Bean 属性映射到/从 CSV 字段.

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 的 CSV 数据格式支持与 Map 之间的编组(其键对应于 CSV 标题,值对应于 CSV 字段).不幸的是,它取决于 Apache Commons CSV,它仍然是 正在孵化 并且还不够活跃和成熟到足以可靠.

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.

推荐答案

没有.Bindy 用于绑定到/从 java bean.

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

您可以使用其他映射到 Map 结构的组件,例如camel-csv、camel-flatpack.

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

这篇关于是否有适用于 Apache Camel 的 Bindy 格式的通用 Map 策略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆