On Today at 12:04pm, AS=>Andrew Stevens <[EMAIL PROTECTED]> wrote:

AS> [..snip..]

Hi Andrew,

Thanks for the quick response. I snipped the upper part of your email as I 
don't use EJBs and perhaps I should have explained my intended use of 
xdoclet with 1.5 sources before I even posed the question in this thread.

I use xdoclet in a struts application only. Typical usage is to generate 
action forms, struts config file, validation files, tlds, etc. What I was 
hoping was that I would be able to use java 1.5 generics while generating 
the action forms.

AS> 
AS> Once you've got XJavadoc to expose the annotations,
AS> 

Annotations, thankfully, are the least of my worries at the moment :-)

All I am after (I say that lightly) is that when I specify:
        public java.util.List<Post> posts;
in a field, that I should be able to get the generic part in my action 
form instead of just being able to get the plain vanilla:
        public List posts;

That's what I meant by making the .xdt templates 1.5 aware.

Perhaps the solution is a little simpler now that I have (hopefully) 
clarified it a little further.

AS> probably the easiest way to have the templates make use of them is to 
AS> update the tag handlers, so that e.g. <XDTClass:ifHasClassTag> looks 
AS> for a class-level annotation of the same name as well as the @tag.  
AS> Otherwise you'll end up more or less duplicating everything that's in 
AS> the templates to test for the annotations too. Alternatively, you 
AS> could leave the API as it is, but have the various classes return an 
AS> XTag for each annotation too.  That way you don't have to update the 
AS> tag handlers either.  Of course, once the "standard" metadata names 
AS> get finalised, you'll probably want to update the templates to look 
AS> for class/method tags with those names too.  There's already some 
AS> support in there for alternative tag names (mainly used in the jboss 
AS> module, I think).
AS> 
AS> No doubt Konstantin will be along in a minute to suggest you consider 
AS> XDoclet 2 for any new development (at http://xdoclet.codehaus.org) ;-) 
AS> I don't know how well (if at all) the QDox parser which that uses 
AS> handles 1.5 syntax, though.
AS> 

I might give XDoclet 2 a try, if I find that it does everything that I 
need it to do which I currently do with XDoclet 1.

AS> 
AS> Andrew.
AS> 

Regards,
--
Haroon Rafique
<[EMAIL PROTECTED]>



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to