--- Joris Wijlens <[EMAIL PROTECTED]> wrote:
> Hi, > > I'd like to generate factory classes for objects > that are tagged with > "@foo.factory name="..." on the class level. I have > for example ten > classes. Five of these classe are tagged with > "@foo.factory > name="factory1" and the other five are tagged with > "@foo.factory > name="factory2". In this case I want to generate two > factories: "factory1" > and "factory2" with factory methods for the tagged > classes. > > My questions are: > > How do I generate two classes for ten unrelated > input classes? I guess I > have to set multioutput to true but from there ... > I'm not sure. > Is there a plugin that already does this in the > plugins src distribution? Are the factories related? I would use multoutput false, and use 2 seperate plugins. If the plugins have to be the same, you can always register them twice with different config parameters. ( say, different parameter - picks diferent classes ). Common code can go into single component which is dependency of your plugins. ( like EJB plugin does ) regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- Still using XDoclet 1.x? XDoclet 2 is released and of production quality. check it out: http://xdoclet.codehaus.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
