代码生成新工具: J2EE Spider

代码生成新工具: J2EE Spider

 

J2EE Spider是一个新开源工具,其主要是用来快速开发基于表单的Web应用程序。J2EE Spider的目标非常简单明确:

可以“无论在何时,用无论你所想,以无论任何方式”来产生代码。

无论在何时是指除了可以在项目开始的时候产生代码外,还可以做增量的构建。这种持续构建的概念支持必要时的代码合并,因此任何代码的更改都不会被遗漏。

用无论你所想是指选择框架时的灵活性。这意味着开发人员能充分利用团队已有优势来决定产生代码所要用到的技术。最终的目标是尽可能不受限制地利用的框架来产生代码。

以无论什么方式是指我们可以随意更改代码产生模版,从而使产生的代码能尽可能地符合团队的开发习惯和方法。开发人员可以很方便地向标准的代码产生方法中加入新要素。

J2EE Spider的主要特性如下:

  • 支持以界面引导方式产生代码
  • 支持与Eclipse集成
  • 支持增量构建
  • 支持正向逆向工程
  • 产生代码的国际化
  • 支持利用模版生成代码
  • 支持利用多个框架

J2EE Spider除了提供可定制的页面模版外,还可以在需要时候把新的技术集成进来。不过,其只对以下几种提供“立等可用的服务”:

  • Web 框架:Struts、JSF和Mentawa(一个来自巴西的应用框架)
  • 依赖注入容器:Spring
  • O/R 映射: Hibernate
  • 页面模版:SiteMesh 和Facelets

有关J2EE Spider的文档还不是很多,其中比较好的是几个屏幕截屏,它们展示了此工具目前可用的功能。以下是屏幕截屏的地址:

  • Windows平台(可执行文件)—— http://downloads.sourceforge.net/j2eespider/spider_video-1.0.0-M1.exe?use_mirror=osdn
  • 多平台(可直接用浏览器浏览)—— http://downloads.sourceforge.net/j2eespider/spider_video-1.0.0-M1.zip?use_mirror=osdn

在你的项目中应用J2EE Spider需要Java 5, Eclipse (带有WTP), JEE或者Servlet容器和J2EE Spider 插件。您可以在J2EE Spider的官方网站http://www.j2eespider.org浏览更多信息和下载J2EE Spider 插件。

 

 

Rapid web development with J2EE Spider

Posted by Ian Roughley on Mar 12, 2008 01:53 PM

Community
Java
Topics
Artifacts & Tools ,
Open Source
Tags
Java EE ,
Code Generation

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:

  • Visual interface for generating code
  • Integration with Eclipse
  • Incremental builds
  • Round-trip engineering
  • Generated code is Internationalized
  • Code generation using templates
  • Supports multiple frameworks

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:

  • Web frameworks: Struts, JSF and Mentawai ( Brazilian web application framework)
  • Dependency Injection Containers: Spring
  • O/R Mapping: Hibernate
  • Page Templates: SiteMesh and Facelets

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:

  • Windows (self-executable) - http://downloads.sourceforge.net/j2eespider/spider_video-1.0.0-M1.exe?use_mirror=osdn
  • Multiplatform (displayed in a browser) - http://downloads.sourceforge.net/j2eespider/spider_video-1.0.0-M1.zip?use_mirror=osdn

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.

你可能感兴趣的:(代码生成新工具: J2EE Spider)