[aspectwerkz-dev] aw doc

Alexandre Vasseur <[email protected]> Sun, 10 Oct 2004 19:25:18 +0200
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
Hi

So to start discussing again about the "generate javadoc with advised
by information etc".

I am not sure ajdoc is the way to go. It makes lot of assumption about
how the javadoc looks like, and acts in two phases as it was described
here in a previous post.
Moreover, you cannot use it with custom doclet etc.

I am wondering, based on what I have found about "jdoc2", how
difficult it would be instead to try to "patch" (see [1] below) the
Sun javadoc classes, so that when the javadoc for a method gets
generated, we simply query AW to see if we have an advice here (see
[2] below).
Ok, it sounds like a crazy idea ? Mh, more than patching generated html ?

So 
[1] could be achieved may be by applying some aspect to ajdoc itself
(thus awdoc calls the Main class of javadoc with some awdoc aspects turned on)
It needs some more digging
[1] can be achieved by shipping a modified version of Sun javadoc.
Since it is not allowed, we can ship a module that do the change for
you (just as the hook does for hotspot java 1.3). In the long run, we
can make use of Java 5 hotswap as well. But i think we should first to
have the job done using our own food aka AW aspects !

[2] the question here is that if from a weaver perspective we can have
all the info we want, it can be somehow more complex to make it
available f.e. when you have call pointcuts, pointcut references,
withincode(..) filter and runtime checks residual parts (f.e. cflow).

Side note: for Java 1.4 self defined aspect, we can hack ~5 doclet to
embed the aspect def in the javadoc - but that s too easy to discuss
it.

Thoughts ?

Alex