在骆驼v2.16.0中替换不推荐使用的beanRef() [英] Replacement of Deprecated beanRef() in Camel v2.16.0

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

问题描述

我们从Camel v2.13升级到v2.16,发现beanRef()已被标记为已弃用.什么是Apache Camel推荐的替代品/替代品.我无法在Camel v2.16.0 Documentation网站上找到任何有用的信息. 甚至没有更新的示例.

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类.

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

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

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