XDoclet

XDoclet is an open-source code generation library that enables Attribute-oriented programming for Java via insertion of special Javadoc tags. It comes with a library of predefined tags, which simplify coding for various technologies: Java EE, Web services, Portlet etc.

XDoclet
Stable release
1.2.3 / May 5, 2005 (2005-05-05)
Written inJava
Operating systemCross-platform
TypeAttribute-Oriented Programming for Java
LicenseBSD license
Websitexdoclet.sourceforge.net/xdoclet/
web.archive.org/web/20080314051510/http://xdoclet.codehaus.org/

Example

A typical XDoclet comment might look like this:

 /****
  * This is the Account entity bean. It is an example of how to use the
  * EJBDoclet tags.
  *
  * @see Customer
  *
  * @ejb.bean
  *     name="bank/Account"
  *     type="CMP"
  *     jndi-name="ejb/bank/Account"
  *     local-jndi-name="ejb/bank/LocalAccount"
  *     primkey-field="id"
  *     schema = "Customers"
  *
  * @ejb.finder
  *     signature="java.util.Collection findAll()"
  *     unchecked="true"
  *
  * @ejb.finder signature="java.util.Collection findByName(java.lang.String name)" 
  *             unchecked="true"
  *             query= "SELECT OBJECT(o) FROM Customers AS o WHERE o.name
  *             LIKE ?1"
  *
  * @ejb.transaction
  *     type="Required"
  *
  * @ejb.interface
  *     remote-class="test.interfaces.Account"
  *
  * @ejb.value-object
  *     match="*"
  *
  * @version 1.5
  */

Books

  • Craig, Walls; Norman, Richards (December 2003), XDoclet in Action, Manning, p. 624, ISBN 1-932394-05-2

References


    This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.