Hello dev list,

Here are my questions. I am using xdoclet for a while now and I think it's a 
very good solution for one of our requirements. We have to generate a sort of 
deployment descriptor (XML file) for some of our POJOs. 

So let's say I have my POJO

/**
 * @my.tag name="MyPojo"
 *         attribute="blah"
 */
public class MyPojo extends MyCommonInterface {


    [...]

    /**
     * @my.field name="something"
     *           type="some-type"
     *           nullable="yes"
     */
    public String getSomething() { [...] }

    [...]
 
}

For *each* of those Pojo I want to generate *one* XML file (the file should 
respect the package structure of my pojo). I looked at the XDT file and it 
seems pretty much clear to me. But:

- How do I get in? I assume I have to define a new doclet and specify "I want 
to launch it for those files (a la ejbdoclet **/Bean.java)
- How do I check for each and every file it implements MyCommonInterface?
- Can I by pass the name="something" attribute for the field (the idea would be 
to generate this attribute based on reflection and the name of the get method
- How do I integrate my custom plugin with the maven plugin?
- How do I generate my XML file in the same package of my Pojo 
(target\mydoclet\com\foo\bar\MyPojo.xml

I have seen several entry points in the EJB plugin. My major problem is to 
actually get in and invoke the xdoclet engine on my module.

Now, last question. We already uses Xdoclet 1.2.2 for all our J2EE stuff. I've 
seen XDoclet2. Which one should I use for new developments? Can I use XDoclet1 
& XDoclet2 on the same maven project?

Thanks a lot for you help and great great tool by the way.

Regards,
St�phane



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to