On Fri, 19 Oct 2001, Mike Cannon-Brookes wrote:

> (I just delved into the WebWork codebase for 10 minutes, but it's very hard
> to get a handle on what does what in the generation process ;))

essentially there are two types of templates, per class, and per run.  The
entitycmp.j is obviously a per class.  things like ejb-jar_xml.j are per
run... 

> Having said that, I just got Dmitri's email and tried messing with purely
> tags in the template - lo and behold, powerful new XDoclet features! ;)

(o:  thats the way!

> I've prefixed my modifications with <NEW> rather than <XDoclet>, tell me if
> you think this will fuck anything up ;)

at a glance, looks ok... 

> wow - I can feel the power, four or five changes and IMHO XDoclet will not
> only generate abstract methods, all other non abstract methods are delegated
> to parent class! ;)
> 
> Here's an example generated non-abstract getter / setter pair:
> 
>    public java.util.Locale getLocale()
>    {
>               return super.getLocale();
>    }
> 
>    public void setLocale( java.util.Locale locale )
>    {
>               super.setLocale(locale);
> 
>       makeDirty();
>    }

so this came out of your changes?  Have you also tried it with code that
follows the usual XDoclet pattern of declaring abstract methods?

> IMHO it should still makeDirty() so I left that in. Also this does not
> create a field in the subclass, but it does still generate all fields
> (superclass and generated) in ejb-jar.xml and dataobjects.

yes, definately leave it in.

> Again - wow, I love this project more and more ;)

(o:  join the club....

cheers
dim


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to