📑 Table of Contents
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/

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

Example

edit

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
  */

References

edit
  1. ^ Walls, Craig; Richards, Norman (December 1, 2003). XDoclet in Action. Manning Publications. pp. 4–5. ISBN 978-1932394054.
edit


📚 Artikel Terkait di Wikipedia

Attribute-oriented programming

possible to utilize attribute-oriented programming right out of the box. XDoclet library makes it possible to use attribute-oriented programming approach

Apache Ant

with Ant: Building and Deploying Java Applications with JSP, EJB, XSLT, XDoclet, and JUnit (1st ed.). SAMS Publishing. p. 456. ISBN 978-0-672-32562-5.

List of Java software and tools

GUI extensions UBY – natural language processing Undecimber – calendar XDoclet – attribute-oriented programming XINS – XML network services XStream –

HttpUnit

with HttpUnit". Professional Java Tools for Extreme Programming: Ant, XDoclet, JUnit, Cactus, and Maven. John Wiley & Sons. pp. 297–318. ISBN 978-0-7645-5617-3