Any progress on model2 without "extends Aspect"?

"Vincent Massol" <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <006001c3dc41$e5a274c0$2502a8c0@vma>
Hi Jonas,

You may remember we discussed this some time ago and you said you'll see
what can be done about it... I'm just following up on it :-)

What I would like is to be able to write (model 2 syntax):

/**
 * @Aspect perJVM
 */
public MyTest extends TestCase
{
[...]
Pointcut xxx
[...]

or even better

public MyTest extends TestCase
{
[...]
Pointcut xxx
[...]

Notice that you normally need to write "extends Aspect". However, in
this case there is already an "extends" and the class being extended
does not belong to my code (and thus I cannot make it extend Aspect).

A better example is provided at
http://blogs.codehaus.org/people/vmassol/archives/000520_cactus_v2_archi
tecture_proposal.html#cactus_test_case (see figures 3 and 4).

What I would really like is that users of Cactus2 can use AspectWerkz
directly. But for this to become a reality we need to work a bit to make
it as easy as possible for end users. Otherwise, there'll be no other
solution that to wrap it in "yet another API". I'd rather not to this.

Maybe one way would be to tell AspectC or AspectWerkzC what are the
Aspects (BTW, this is already done in AspectWerkzC by passing the xml
definition file, no?)?

Thanks!

-Vincent
Wanna see JUnit in Action?
(http://manning.com/massol)
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.