除了 XINS 之外,还使用 Java 进行 eXtreme 合同设计?
是否有类似于 按合同设计的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解 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.