Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Newbie: How to write a pointcut for nested class in aop.xml

Newbie question here,
 
Unsure if this is the right way to do this, but ServiceContext is a class nested in ListenerService. I want to monitor its execution. Is this the best way to do this?
 
      <pointcut name="scope" _expression_="execution(* com.verisign.smq.spi.ListenerService.ServiceContext.run())"/>
I tried this and this did not work:
 
      <pointcut name="scope" _expression_="execution(* *.run()) AND within(com.verisign.smq.spi.ListenerService)"/>
Thanks in advance,
 
Bob 

Back to the top