XDoclet
XDoclet is an open-source code generation library that enables Attribute-oriented programming for Java via insertion of special Javadoc tags.
≈ 1 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
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 edit sourceA 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 edit source- ^ Walls, Craig; Richards, Norman (December 1, 2003). XDoclet in Action. Manning Publications. pp. 4–5. ISBN 978-1932394054. Wikipedia revision 1356814534, retrieved 2026-11-18
External links
edit edit sourceText derived from https://en.wikipedia.org/w/index.php?oldid=1356814534 under CC BY-SA 4.0; modifications have been made.