Spring AOP Static Pointcut Example
|
Tweet
|
Pointcut verifies whether a particular method of particular class is eligible for getting the advice or not. It means the pointcut verifies the class names and method names, but not run time parameters of the method. in spring AOP we have 2 static pointcut classes
- NameMatchMethodPointcut
- RegxpMethodPointcut
Above 2 classes are predefined static pointcut classes given by spring AOP framework. These classes are just going to verify whether the method name is matching with given condition or not, but these 2 classes doesn’t check whether the class names are matching or not. According to the predefined static point cuts, they wont verify the class name is matching or not but makes all classes eligible to get advices by default.
Let us see one by one static pointcut with example.
|
What you are thinkig....
One Response to “Spring AOP Static Pointcut Example”
If you want a pic to show with your comment, go get a gravatar !
Please post your questions on Java4s Answers forum



Dear brother is this aop sufficient to work in real time