1

Can I intercept spring framework class using my custom Aspect like : Intercepting all public methods of : org.springframework.integration.mail.Pop3MailReceiver

@Aspect
public class Pop3MailReceiverAspect {
@AfterReturning(pointcut="execution(* org.springframework.integration.mail.Pop3MailReceiver.*(..))")
public void getNameAdvice(){
    ........
}
Abdul Mohsin
  • 105
  • 7
  • using aspects in programming produces hard-to-test code. Can you tell us, what is the problem you trying to solve, maybe the is better solution for it – WeGa Nov 10 '17 at 14:41
  • In this case , I wanted to trap the spring poller's success case. Actually – Abdul Mohsin Nov 21 '17 at 08:42

0 Answers0