Bear Giles wrote:
This reminds me of my problem automatically generating DAO code for some, but not all, classes in a package.

What I did was create an empty interface that only the classes I wanted to generate implemented. The xdoclet invocation that generated the DAO classes was restricted to classes that implement that interface.

You should be able to do something similar.

I'm afraid by misrepresenting my actual problem, I've led you into supplying advice I can't use. My fault :-(

BTW, why are you providing external documentation for your classes instead of the interface? Good coding practice, as I understand it, would dictate that they use the interface exclusively in their code, with the exception of the constructor calls. And that should probably be hidden in an appropriate Factory class. Or are you documenting only the factories?

Not so. In the classic case of the decorator pattern, each class implements the same interface, and yet has (usefully) different behaviour. See the various "Collections" in java.util...

Anyway:

I actually simplified my task to keep my request brief. I actually
have 2 sets of documentation to generate, but I tried not to bore
the list with irrelevant details.

To re-iterate, making more assumptions. I would like to embded
documentation (in whatever form recommended) such that it can
be identified, extracted, reformatted and collated into a single
file (eventually HTML or PDF, but an intermediate XML stage
might be part of the process).

Any specific coding examples, code samples, ant invocations,
would be greatly welcomed. I'm having trouble locating
the "heart" of xdoclet from the great morass of
EJB specific stuff.

    BugBear


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to