3.6. 弃用的 API 和组件
Camel 3 中删除了来自 Camel 2.x 的所有已弃用的 API 和组件。
3.6.1. 删除的组件
Camel 2.x 中的所有已弃用的组件都在 Camel 3.x 中删除,包括旧的 camel-http
, camel-hdfs
, camel-mina
, camel-mongodb
, camel-netty
, camel-netty-http
, camel-quartz
, camel-restlet
和 camel-rx
组件。
-
删除了
camel-jibx
组件。 -
删除了
camel-boon
数据格式。 -
删除了
camel-linkedin
组件,因为 不再支持 Linkedin API 1.0。对新 2.0 API 的支持由 CAMEL-13813 跟踪。 -
camel-zookeeper
删除了其路由策略功能,而是使用ZooKeeperClusterService
或camel-zookeeper-master
组件。 -
camel-jetty
组件不再支持制作者(已被删除),改为使用camel-http
组件。 -
Twitter
-streaming
组件已被删除,因为它依赖于已弃用的 Twitter Streaming API,不再可以正常工作。
3.6.2. 重命名组件
在 Camel 3.x 中重命名以下组件。
-
camel
-microprofile-metrics
已重命名为camel-micrometer
-
测试
组件已重命名为dataset-test
,并从camel-core
移到camel-dataset
JAR 中。 -
http4
组件已重命名为http
,它对应于从org.apache.camel.component.http4
到org.apache.camel.component.http
的组件软件包。现在,支持的方案只能是http
和https
。 -
hdfs2
组件已重命名为hdfs
,它对应于从org.apache.camel.component.hdfs2
到org.apache.camel.component.hdfs
的组件软件包。现在支持的方案是hdfs
。 -
mina2
组件已重命名为mina
,它对应于来自从org.apache.camel.component.mina2
到org.apache.camel.component.mina
2 的软件包。现在支持的方案是mina
。 -
mongodb3
组件已重命名为mongodb
,它对应于从org.apache.camel.component.mongodb3
到org.apache.camel.component.mongodb
的组件软件包。现在支持的方案是mongodb
。 -
netty4-http
组件已重命名为netty-http
,它对应于从org.apache.camel.component.netty4.http
到org.apache.camel.component.netty.http
的组件软件包。现在支持的方案是netty-http
。 -
netty4
组件已重命名为netty
,它对应于从org.apache.camel.component.netty4
到org.apache.camel.component.netty
的组件软件包。现在支持的方案是netty
。 -
quartz2
组件已重命名为quartz
,它对应于从org.apache.camel.component.quartz2
到org.apache.camel.component.quartz
的组件软件包。现在支持的方案是quartz
。 -
rxjava2
组件已重命名为rxjava
,它对应于从org.apache.camel.component.rxjava2
到org.apache.camel.component.rxjava
的组件软件包。 -
将
camel-jetty9
重命名为camel-jetty
。现在,支持的方案是jetty
。