替换 Camel v2.16.0 中已弃用的 beanRef() [英] Replacement of Deprecated beanRef() in Camel v2.16.0

查看:27
本文介绍了替换 Camel v2.16.0 中已弃用的 beanRef()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在从 Camel v2.13 升级到 v2.16,并发现 beanRef() 已被标记为已弃用.Apache Camel 推荐的替代品/替代品是什么.我在 Camel v2.16.0 文档站点上找不到任何有用的东西.甚至还没有更新的示例.

We are upgrading from Camel v2.13 to v2.16 and discovered that beanRef() has been marked as deprecated. What is the replacement/alternative recommended by Apache Camel. I was unable to find anything useful on Camel v2.16.0 Documentation site. Even updated examples are not yet available.

beanRef() 是 Camel 的 Java DSL Bean 语言中的语法.

beanRef() is syntax within Java DSL Bean Language of Camel.

推荐答案

我假设您在谈论 ProcessorDefinition 类.

I assume that you are talking about the ProcessorDefinition class.

javadoc 注释说使用 bean(...) 方法代替 beanRef(...) 方法.

The javadoc comments say to use the bean(...) methods as replacements for the beanRef(...) methods.

来源参考:https://github.com/apache/camel/blob/6dae060eeec8b49531df5d6828030f4ef037f6eb/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java

这篇关于替换 Camel v2.16.0 中已弃用的 beanRef()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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