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

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

问题描述

我是新来的Apache骆驼,并且通过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. 从Java代码到bl​​ueprint.xml的方法在JBoss Fuse中是不可能的吗?我想念什么吗?

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代码和最终用户可以完成很多 other 任务,而不仅仅是常规的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的骆驼路线.

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天全站免登陆