Re: [abc-users] capturing aspects

From: Julian Tibble <julian.tibble_at_worc.ox.ac.uk>
Date: Mon, 21 Jul 2008 20:23:25 +0100

> I mislead you in referring to an already-woven aspect, what
> I really want to do is to wrap an aspect as it is getting
> woven, with my own code. In other words, for an aspect A
> that is getting woven, I want to weave in A', where A' is
> [mycode]A[mycode].

Would the following AspectJ do the trick without the need
for compiler-hacking?

aspect A'
{
    void around(): adviceexecution() && within(A)
    {
        // mycode
        proceed();
        // mycode
    }
}

Julian
Received on Mon Jul 21 2008 - 20:23:29 BST

This archive was generated by hypermail 2.2.0 : Tue Jul 22 2008 - 18:40:11 BST