[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] A very simple question

Hello, I'm very new to AspectJ, and I have a very simple question: 
    How do I get a reference to the object my pointcut is weaving into?  

For example:

pointcut p() : execution(public void com.Foo.doThis(..));

after() : p() {
    // this where I need the instance of Foo specified by p()

    
}


I tried using thisJoinPoint.getTarget() but I get errors.  Using v1.1 I got 
one type of error and for v1.2 I got another.