I am new to Spring AOP and was reading the docs for pointcut designators. Both this and target designators sound same to me. Can someone explain with a better/cleaner example? Thanks
this - limits matching to join points (the execution of methods when using Spring AOP) where the bean reference (Spring AOP proxy) is an instance of the given type
eg: this(com.xyz.service.AccountService)
any join point (method execution only in Spring AOP) where the proxy implements the AccountService interface:
target - limits matching to join points (the execution of methods when using Spring AOP) where the target object (application object being proxied) is an instance of the given type
eg: target(com.xyz.service.AccountService)
any join point (method execution only in Spring AOP) where the target object implements the AccountService interface
Link : http://docs.spring.io/spring/docs/3.0.x/spring-framework-reference/html/aop.html