Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] reusing aspects

I've created some aspects in one of my projects from which another project is derived. In the first (base) project, I created an aspect that causes any set* methods on a class that extends a particular class to call a method that makes the instance as dirty:

    pointcut mutator(AbstractSavable s): target(s)
        && execution(public void set*(..));

    after(AbstractSavable s): mutator(s) {
        s.modify();
    }

This works fine, but how do I get projects that extend this framework to continue to do this?

--
SPY                      My girlfriend asked me which one I like better.
pub  1024/3CAE01D5 1994/11/03 Dustin Sallings <dustin@xxxxxxx>
|    Key fingerprint =  87 02 57 08 02 D0 DA D6  C8 0F 3E 65 51 98 D8 BE
L_______________________ I hope the answer won't upset her. ____________



Back to the top