Spring AOP Static Pointcut Example
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
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.
Sivateja Kandula ♦ ( Java/J2EE Developer & Web Designer )
Founder of Java4s.com. You can contact me at sivateja [at] java4s.com