org.springframework.aop.support
Class Pointcuts.SetterPointcut

java.lang.Object
  extended by org.springframework.aop.support.StaticMethodMatcher
      extended by org.springframework.aop.support.StaticMethodMatcherPointcut
          extended by org.springframework.aop.support.Pointcuts.SetterPointcut
All Implemented Interfaces:
java.io.Serializable, MethodMatcher, Pointcut
Enclosing class:
Pointcuts

private static class Pointcuts.SetterPointcut
extends StaticMethodMatcherPointcut
implements java.io.Serializable

Pointcut implementation that matches bean property setters.


Field Summary
static Pointcuts.SetterPointcut INSTANCE
           
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
private Pointcuts.SetterPointcut()
           
 
Method Summary
 boolean matches(java.lang.reflect.Method method, java.lang.Class targetClass)
          Perform static checking whether the given method matches.
private  java.lang.Object readResolve()
           
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static Pointcuts.SetterPointcut INSTANCE
Constructor Detail

Pointcuts.SetterPointcut

private Pointcuts.SetterPointcut()
Method Detail

matches

public boolean matches(java.lang.reflect.Method method,
                       java.lang.Class targetClass)
Description copied from interface: MethodMatcher
Perform static checking whether the given method matches. If this returns false or if the MethodMatcher.isRuntime() method returns false, no runtime check (i.e. no. MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) call) will be made.

Specified by:
matches in interface MethodMatcher
Parameters:
method - the candidate method
targetClass - the target class (may be null, in which case the candidate class must be taken to be the method's declaring class)
Returns:
whether or not this method matches statically

readResolve

private java.lang.Object readResolve()