Get all updates of Java4s

Spring AOP Static Pointcut Example

Spring »on Sep 16, 2012 { 5 Comments } By Sivateja

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.

You Might Also Like

  ::. About the Author .::

- Full Stack Java/J2EE & UI Web Developer
Founder of Java4s - Get It Yourself, A popular Java/J2EE Programming Blog, Love Java and UI frameworks.
You can sign-up for the Email Newsletter for your daily dose of Java tutorials.


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

  3. Good website and best explanation for any beginner to learn, I m reading Spring Framework and it is vey use full for me to understand for the first time only, well done nice job 5 out of 5.

  4. srikanth says:

    great effort sivateja…it helped a lot !!! Thank you

  5. Mihir says:

    please write an article on Spring Cache. Why we use spring cache and complete implementation of spring cache with redis.We need to know about Spring BOOT also.


By posting your answer, you agree to our comments policy.
What would you like to learn today?
Browse these popular technologies
Spring-Boot-tutorials Hibernate tutorials Spring tutorials Struts tutorials Servlets tutorials Ajax tutorials Log4j tutorials jQuery tutorials Json tutorials Core Java tutorials Web Services tutorials AngularJs tutorials
Most Recent Tutorials
Hibernate_Logo Hibernate Recent Posts Spring_Logo Spring Recent Posts Struts_Logo Struts Recent Posts
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2018 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.