org.kuali.rice.kns.util.spring
Class ClassOrMethodAnnotationMatcher

java.lang.Object
  extended by org.springframework.aop.support.StaticMethodMatcher
      extended by org.kuali.rice.kns.util.spring.ClassOrMethodAnnotationMatcher
All Implemented Interfaces:
org.springframework.aop.MethodMatcher

public class ClassOrMethodAnnotationMatcher
extends org.springframework.aop.support.StaticMethodMatcher

Matches if the specified annotation is present on the targetClass or if it is present on the most specific method on the target class corresponding to the method specified, as defined by AopUtils.


Field Summary
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
ClassOrMethodAnnotationMatcher(Class<? extends Annotation> annotationType)
           
 
Method Summary
 boolean matches(Method method, Class targetClass)
           
 
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
 

Constructor Detail

ClassOrMethodAnnotationMatcher

public ClassOrMethodAnnotationMatcher(Class<? extends Annotation> annotationType)
Method Detail

matches

public boolean matches(Method method,
                       Class targetClass)
See Also:
MethodMatcher.matches(java.lang.reflect.Method, java.lang.Class)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.