JaVa
   

XDoclet Merging

Fortunately, there is one way to handle the static generation of the code. Looking at the previous listing, you will see tags such as the following:

<XDtMerge:merge file="local-custom.xdt">
 </XDtMerge:merge>


These tags represent merge points where the code generator will try to find the specified file, pull in all of the code verbatim from the file, and place it in the resulting source code.

To use the merge points, just place the code you want to have merged into the specified file. There are numerous merge points throughout the XDoclet template in order to provide a high level of developer customization of the resulting source code.


JaVa
   
Comments