从 Java 中的骆驼路线获取可视化文档? [英] Get visual documentation from camel routes in Java?

查看:31
本文介绍了从 Java 中的骆驼路线获取可视化文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 apache camel 的新手,并通过 Java DSL 使一些路由正常工作.

I'm new to apache camel and made some routes working properly via Java DSL.

现在我想知道是否有机会使用 JBoss Fuse 自动获得这些路线的可视化表示?

Now I'm wondering if there is a chance to get automatic a visual representation of these routes with JBoss Fuse?

我的意思不是再次手工绘制,更多是为了自动记录:-)

I mean not by drawing it by hand again, more for automatic documention :-)

因为反对似乎比回答容易,所以我试着重新表述一下我的问题.
我正在寻找一种可能性来对我定义的路由(Java)进行逆向工程,并从中获取带有框的图片.

Since a downvote seems to be easier than a answer I try to rephrase my question a bit.
I'm looking for a possibility to reverse engineer my defined routes (Java) and get a picture with boxes out of it.

Hawtoi,我之前尝试过的,给出了一个漂亮的结果,但还有很多我的文档不需要的其他东西.
因此我看了一下JBoss Fuse.但是在这里我只能绘制我的流程并将它们保存为blueprint.xml.在 JBoss Fuse 中无法从 Java 代码到 blueprint.xml 吗?我错过了什么吗?

Hawtoi, what I tried before, gives a beautiful result but also a lot of other stuff I don't need for my documentation.
Therefore I took a look at JBoss Fuse. But here I can only draw my processes and save them as a blueprint.xml. Is the way from Java code to blueprint.xml not possible in JBoss Fuse? Do I miss something?

推荐答案

Eclipse 的 JBoss Camel 开发人员工具可以可视化从 XML 文件加载的 Camel 路由.然后,您可以保存这些图表等以用于文档目的.

The JBoss Camel Developer Tools for Eclipse can visualize Camel routes loaded from XML files. You can then save those diagrams etc for documentation purposes.

它还不适用于 Java 路由,但他们已经讨论过在未来添加对此的支持.Mind Java 更难,因为它的 Java 代码和最终用户可以做很多其他的事情,而不仅仅是常规的 Camel 路由,因此将其解析为可视化图表比 XML 更难.

It does not yet work with Java routes, but they have talked about adding support for that in the future. Mind Java is harder as its Java code and end users can do a lot of other stuff than just regular Camel routing so parsing that to visual diagram is harder than XML.

https://tools.jboss.org/features/apachecamel.html

但在撰写本文时,还没有工具可以从 Java DSL 中可视化 Camel 路由.

But at this moment of writing there is no tool to visualize Camel routes from Java DSL.

Apache Camel IDEA 插件有票,看看我们未来是否可以为 XML 和 Java 添加路由可视化:https://github.com/camel-idea-plugin/camel-idea-plugin/issues/27

The Apache Camel IDEA plugin has a ticket to see if we can add route visualization for XML and Java in the future: https://github.com/camel-idea-plugin/camel-idea-plugin/issues/27

这篇关于从 Java 中的骆驼路线获取可视化文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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