除了 XINS 之外,还使用 ​​Java 进行 eXtreme 合同设计?

发布于 2024-09-14 22:18:54 字数 627 浏览 5 评论 0原文

是否有类似于 按合同设计的 Java 项目技术解决方案http://www.xins.org/" rel="nofollow noreferrer">XINS?我正在寻找强制开发人员首先为其应用程序编写合同的项目/框架,然后在该合同的范围内进行编码,真正充分利用合同的潜力。我正在寻找像 XINS 这样的东西,从该合同生成代码(服务器端和客户端、单元测试、存根)和文档(OpenDocument、HTML、测试表单),并带有验证合同的运行时组件。

合同可以是任何内容,例如 WSDL 或一堆 XML 文件。与 Spring 集成会很好。

请注意,我过去开发过 XINS(不过不再是当前的维护者),我想知道存在哪些类似的解决方案以及它们如何进行比较。

Are there any technical Design-by-Contract solutions for Java projects similar to XINS? I'm looking for projects/frameworks that enforce developers to first author a contract for their application and then code within the boundaries of that contract, really using the contract to the full potential. I'm looking for something that, like XINS, generates code (server- and client-side, unit tests, stubs) and documentation (OpenDocument, HTML, test forms) from that contract, with a runtime component that validates the contract.

The contract can be anything, e.g. WSDL or a bunch of XML files. Integration with Spring would be nice to have.

Note that I developed XINS in the past (not the current maintainer anymore, though), and I'm wondering what similar solutions exist and how they compare.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

得不到的就毁灭 2024-09-21 22:18:54

据我了解 Spring Web Services 项目推广了您所描述的方法。甚至在他们的教程中详细描述了 。这个想法是手动描述数据契约并基于此描述创建 Web 服务。 Spring框架提供了很多不同的基础设施类,使这个任务更容易解决。

As far as I understand Spring Web Services project promotes the approach you described. It's even described in details in their tutorial. The idea is to describe data contract manually and create web services based on this description. Spring framework provides quite a lot of different infrastructure classes to make this task much easier to solve.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文