RE: AWare

Jérôme BERNARD <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
Quoting Alex <alex-he/e8N7AIe/[email protected]>:

> Hi Jérome
> I do think we need to be able to download the docs etc, so go for xdoc or
> other stuff I will need to learn as long as it stays KISS.

That's definitely the main goal. Second one being able to write good looking
documentations.

> Looks like great contribution are coming by the way ;-) Is that used in
> your e-commerce production sites ? May be you could write some advocacy
> around AspectWerkz.

Ssh... It is a secret :-) No, I'm just kidding.
The JMX aspects I added were effectively written for this project. I have other
ones (like some for messaging notifications, some for commons-lang fallback if
the weaved objects do not override toString(), equals() and hashCode() methods,
), that I'll add until the location of the AWare project is decided.
I'd like also to refactor the code of my project so that it uses the
Unit-Of-Work pattern like you introduced it in the AOSD presentations. So expect
to have a Hibernate version sooner or later.

> Some question regarding dev / test in AWare
> - how did it went to integrate clover, since clover is doing some post
> compilation on classes if I remember.

That's right.

> Did you run the test suite with AW offline mode then ?

Nope. Basically, Clover compiles the sources in a specific directory (by default
target\clover\classes) and the run the "post compilation". What I did is that
after the "regular" javac compilation I run AspectC. This means that if you use
Clover, AspectC is run before the "post compilation", which is I think the best
way to do it so that we do not accidentally instrument Clover "enhanced" classes.

> - did u used the WeavedTestCase we provide to allow seamless online
> emulation for test case thru a custom JUnit Test runner ?

Nope. I am running "regular" test-cases (I mean some extends TestCase). I will
look once more at what you did with the WeavedTestCase and see how it might ease
the process.

The only bad thing with my solution is that it currently only works with JRockit
as explained on my wiki. I still have to handle other online-mode solutions
(this should be done by changing the JUnit JVM args).


Jérôme.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.