Originally posted by Naina Si:
What are pointcut operations in Spring Framework? How are static and dynamic pointcut operations used and what is the need of creation of these operations?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Lasse Koskela:
With a static pointcut, the AOP framework doesn't need to consider the execution context since the pointcut is specified in terms of static structure (e.g. "all methods that start with the letters t-e-s-t").
With a dynamic pointcut, the AOP framework determines at runtime whether an aspect should be applied based on the execution context (e.g. "all methods that start with the letters t-e-s-t and one of the method call arguments is null").
Spring Boot in Action - Spring made easy!
Spring in Action - Build powerful applications!
Build Talking Apps for Alexa - Add voice to your applications!
Originally posted by Naina Si:
But where do we specify that its a 'static' or 'dynamic' point cut?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Naina Si:
But where do we specify that its a 'static' or 'dynamic' point cut?
Its all so confusing to me, probably i should read more on this topic.
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
Consider Paul's rocket mass heater. |