David,

I certainly haven't spent any time on jboss3, and from Vincent's email
earlier today he's in a similar position.  It'd be great if someone with
your knowledge could plug it together.

On Wed, 5 Dec 2001, David Budworth wrote:

> I'd like to add full jbosscmp-jdbc.xml abilities to xdoclet.  But
> first, I have a few questions:
> 
> 1) How does one add new tags to xdoclet?
> ie:
>    @jboss:relation www="xxx"
>                    yyy="zzz"

[firstly, i hope I'm not patronizing here, certainly dont mean to be if it
comes across that way]

xdoclet is just a simple templating mechanism... the intelligence is in
the usability... I'm sure once you get into one of the templates it'll
make sense... but a quick start:
  1. all tags start with <XDtMyTagPrefix:myMethod>  where 'MyTagPrefix'
maps to a subclass of TemplateTagHandler.  The prefix->class mappings are
contained in the tagmappings.properties file.  However, you probably wont
need to make any more tags, just use the existing ones.
  2. the currently implemented tags are documented in the build
process.  build.sh dist will generate the doco for these tags... they may
seem incomplete at the top level, but most of them have
descriptions.  failing that, you can always just either look at templates
for similar requirements, or look at the methods themselves...

> 2) Is anyone already working on this?  When I found xdoclet, I dumped my
> own code generation tool.  The only thing I've been missing is the
> jbosscmp-jdbc.xml support.  Jaws works, but the current jbosscmp xml
> that get's generated doesn't work at all for N:1 bi-directional
> relations, which I need.

I'm assuming you know the dtd off the top of your head... there is already
a jbosscmp-jdbc_xml.j template, but I'm not sure what's missing.  feel
free to get in their and add/change as required... it'd be great to get
this running!

hth
dim


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

Reply via email to