How is the destination package name determined in such cases? Does that become a plugin attribute that in turn is specified when invoking the plugin?.
And one more,
invokign the plugin multiple times looks neat. But would that mean that we need to know upfront how many factory classes we will eventually end up with?
regards,
karthik
On Wed, 02 Nov 2005 Konstantin Priblouda wrote :
>
>
>--- 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
- [xdoclet-user] Generating 2 classes for 10 input clas... Joris Wijlens
- Re: [xdoclet-user] Generating 2 classes for 10 i... Konstantin Priblouda
- Re: Re: [xdoclet-user] Generating 2 classes for ... karthik Guru
