Simple template to introduce XDoclet First template: XDoclet architecture Case study: Create Web Service Deployment Descriptor 1st try Case study: Create Web Service Deployment Descriptor 2nd try Summary and resources Use XDoclet to generate Web service support files ibm.com/developerWorks Presented by developerWorks, your source for great tutorials Section 1. About this tutorial What is XDoclet? You can skip this page if you already use XDoclet or already read the first XDoclet tutorial. XDoclet facilitates automated deployment descriptor generation.
Read the rest of this entry »
Apply XDoclet to a J2EE project What is XDoclet? • Javadoc metadata templating engine • Attribute-oriented programming • Outgrown its EJBDoclet roots Why XDoclet? • Avoid code metadata duplication • Pragmatic Programming: • DRY - Don’t Repeat Yourself • Program close to the problem domain • Write code that writes code • JSR’s 175 & 181 JSR 175 A metadata facility for the Java Programming Language would allow classes, interfaces, ?elds, and methods to be marked as having particular attributes. JSR 181
Read the rest of this entry »
XDoclet is basically just a code generation tool. Many applications have redundant code and/or interfaces and this is where XDoclet comes into play. You can update one source file and use XDoclet to regenerate the affected files. The incredible improvements to content management are clearly obvious. XDoclet parses source code like JavaDoc. By reading JavaDoc tags embedded in source code, XDoclet uses predefined templates to generate code based on those tags. A common use of XDoclet is to embed tags in EJB’s and automatically generate all of the interfaces, beans, and XML descriptors.
Read the rest of this entry »