Re: Generating classes per method

Konstantin Priblouda <kpriblouda-/[email protected]>
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <[email protected]>

--- Apchan <[email protected]> wrote:

> 
> Hey Thanks again Konstantin. 
> 
> I've looked at the generama/xdoclet source, but I
> think its a better idea
> just to write my own homegrown solution using qdox
> and velocity. That way I
> have full control and don't need to be restricted. 

In this case you will have to duplicate some plugin
functionality ( for example: integration into ant etc.
)

Since XD2 uses pico container to assemble application,

your class ( plugin ) has to do not very much:
 - have public constructor
 - state in public constructor that it needs 
   metadata provider ( qdox metadata provider etc ) 
 - provide "public void start()" which does the work

Then it can be executed by xdoclet/generama.
I would also recommend to write fromal tags
( taglib plugin ) to take advandate of automatic
validtion.

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


 
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.