Can view the tutorials best in Google Chrome, Mozilla Firefox, Opera, higher version of Internet Explorer

Spring AOP Static Pointcut Example

Spring » On Sep 16, 2012 | { 2 Comments }

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....

2 Responses to “Spring AOP Static Pointcut Example”
  1. karthikeya says:

    Dear brother is this aop sufficient to work in real time

  2. nandu says:

    i am new to java.can u please explain whats the meaning for / in web.xml while executing spring program,,,, and one more why we are using the @RequestMapping as annotation.

If you want a pic to show with your comment, go get a gravatar !
Please post your questions on Java4s Answers forum

Name*
Ask a Question ?
or
Mail*
Website



By posting your answer, you agree to our comments policy.
Most Recent Tutorials
Hibernate Recent Posts
Spring Recent Posts
Struts Recent Posts
Recomandded Links Current & UpComing Tutorials Java4s.com
Tutorials Online :
spring Hibernate struts Json Ajax Log4j Log4j
coreJava Servlets


UpComing :
Jsps,Web Services
Java4s is optimized for learning java technologies, all the examples in this site are constantly reviewed to avoid errors. While using this site you agree to have read and accepted our terms of use and privacy policy
Especially i have prepared this blog by keeping fresher's in mind, however it will be very useful for real time developers too.


© 2014 Java4s All rights reserved. | strPro4Tut v(2.0) Theme designed by Team Java4s.