代码生成新工具: J2EE Spider
J2EE Spider是一个新开源工具,其主要是用来快速开发基于表单的Web应用程序。J2EE Spider的目标非常简单明确:
可以“无论在何时,用无论你所想,以无论任何方式”来产生代码。
无论在何时是指除了可以在项目开始的时候产生代码外,还可以做增量的构建。这种持续构建的概念支持必要时的代码合并,因此任何代码的更改都不会被遗漏。
用无论你所想是指选择框架时的灵活性。这意味着开发人员能充分利用团队已有优势来决定产生代码所要用到的技术。最终的目标是尽可能不受限制地利用的框架来产生代码。
以无论什么方式是指我们可以随意更改代码产生模版,从而使产生的代码能尽可能地符合团队的开发习惯和方法。开发人员可以很方便地向标准的代码产生方法中加入新要素。
J2EE Spider的主要特性如下:
J2EE Spider除了提供可定制的页面模版外,还可以在需要时候把新的技术集成进来。不过,其只对以下几种提供“立等可用的服务”:
有关J2EE Spider的文档还不是很多,其中比较好的是几个屏幕截屏,它们展示了此工具目前可用的功能。以下是屏幕截屏的地址:
在你的项目中应用J2EE Spider需要Java 5, Eclipse (带有WTP), JEE或者Servlet容器和J2EE Spider 插件。您可以在J2EE Spider的官方网站http://www.j2eespider.org浏览更多信息和下载J2EE Spider 插件。
Posted by Ian Roughley on Mar 12, 2008 01:53 PM
J2EE Spider is a new open source tool for rapidly developing form-based web applications. The objectives of J2EE Spider are simple:
Generating codes whenever you want, with whatever you want and however you want.
When allow us to generate codes not only in the beginning of the project, but also to perform an incremental build. This concept of successive builds uses merge whenever necessary so that it won't lose customizations that may have been done in the code.
With what is the flexibility in the choice of frameworks. This allows the developer to decide which technologies will be part of the generated code, taking advantage of his/her team's know-how. In the future, it is intended to allow the generation with the greatest possible number of frameworks.
How allows us to alter the generation code template so that the generated code will be as similar as possible to the development methodology of each team. It is also possible to add new resources to the standard code generation in an easy and simple way.
Key features of J2EE Spider include:
As well as being able to provide custom page templates for your applications, new technologies can be integrated as necessary. However, for "out of the box" functionality the following technologies are provided:
At the moment the documentation is limited. The best source of information is through several screencasts. These demonstrate the features in action and are available in several formats:
The minimum requirements to use J2EE Spider in your projects is Java 5, Eclipse (with WTP), a JEE or Servlet container and the J2EE Spider plug-in. More information, as well as the download location for the plug-in, can be found at the J2EE spider website http://www.j2eespider.org.