Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] how do you write a pointcut in aop.xml for an inner class?

Hello,
 
Given the following:
 
public class ListenerService {
    private class ServiceContext implements Runnable {
        public void run() {
            System.out.println("hello world");
        }
    }
}
 
How do I write an pointcut in an aop.xml file for the inner class that is a Runnable and only for this Runnable?
 
I have tried several times and I cannot get this to work at all. For example here are two of the many tries I made:
 
<pointcut name="scope" _expression_="execution(* com.verisign.smq.spi.ListenerService.ServiceContext.run())"/>
<pointcut name="scope" _expression_="execution(* *.run()) AND within(com.verisign.smq.spi.ListenerService)"/>
Help would be greatly appreciated. This is a road-blocker for an issue I have.
 
Thanks
 
Bob
 

Back to the top