com.googlecode.ehcache.annotations.impl
Class CacheStaticMethodMatcherPointcut

java.lang.Object
  extended by org.springframework.aop.support.StaticMethodMatcher
      extended by org.springframework.aop.support.StaticMethodMatcherPointcut
          extended by com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut
All Implemented Interfaces:
org.springframework.aop.MethodMatcher, org.springframework.aop.Pointcut

public class CacheStaticMethodMatcherPointcut
extends org.springframework.aop.support.StaticMethodMatcherPointcut

Pointcut that delegates matching checks to a CacheAttributeSource.

Version:
$Revision: 656 $
Author:
Eric Dalquist

Field Summary
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
CacheStaticMethodMatcherPointcut()
           
 
Method Summary
 boolean matches(java.lang.reflect.Method method, java.lang.Class<?> targetClass)
          Returns true if the configured CacheAttributeSource.getAdviceType(Method, Class) method returns an AdviceType other than AdviceType.NONE.
 void setCacheAttributeSource(CacheAttributeSource cacheAttributeSource)
           
 
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
 

Constructor Detail

CacheStaticMethodMatcherPointcut

public CacheStaticMethodMatcherPointcut()
Method Detail

setCacheAttributeSource

public void setCacheAttributeSource(CacheAttributeSource cacheAttributeSource)

matches

public boolean matches(java.lang.reflect.Method method,
                       java.lang.Class<?> targetClass)
Returns true if the configured CacheAttributeSource.getAdviceType(Method, Class) method returns an AdviceType other than AdviceType.NONE.

See Also:
MethodMatcher.matches(java.lang.reflect.Method, java.lang.Class)


Copyright © 2011. All Rights Reserved.