---
title: XDoclet
slug: xdoclet
qid: 
snapshot: enwiki-001356814534
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1356814534
tags: [128691585, 23118434, 23468805, 23603337, 28697135, 31884599, 67434975]
---

# XDoclet

> [!note] Provenance
> Snapshot `enwiki-001356814534` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1356814534> · Licensed CC BY-SA 4.0

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 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. ==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 */ ==References== ==External links== XDoclet project site XDoclet2 project site
