类 DefaultCacheAnnotationParser
java.lang.Object
cn.taketoday.cache.annotation.DefaultCacheAnnotationParser
- 所有已实现的接口:
CacheAnnotationParser,Serializable
public class DefaultCacheAnnotationParser
extends Object
implements CacheAnnotationParser, Serializable
Strategy implementation for parsing Framework's
Caching, Cacheable,
CacheEvict, and CachePut annotations.- 从以下版本开始:
- 4.0
- 作者:
- Costin Leau, Juergen Hoeller, Chris Beams, Phillip Webb, Stephane Nicoll, Sam Brannen
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleaninthashCode()booleanisCandidateClass(Class<?> targetClass) Determine whether the given class is a candidate for cache operations in the annotation format of thisCacheAnnotationParser.parseCacheAnnotations(Class<?> type) Parse the cache definition for the given class, based on an annotation type understood by this parser.parseCacheAnnotations(Method method) Parse the cache definition for the given method, based on an annotation type understood by this parser.
-
构造器详细资料
-
DefaultCacheAnnotationParser
public DefaultCacheAnnotationParser()
-
-
方法详细资料
-
isCandidateClass
从接口复制的说明:CacheAnnotationParserDetermine whether the given class is a candidate for cache operations in the annotation format of thisCacheAnnotationParser.If this method returns
false, the methods on the given class will not get traversed for#parseCacheAnnotationsintrospection. Returningfalseis therefore an optimization for non-affected classes, whereastruesimply means that the class needs to get fully introspected for each method on the given class individually.- 指定者:
isCandidateClass在接口中CacheAnnotationParser- 参数:
targetClass- the class to introspect- 返回:
falseif the class is known to have no cache operation annotations at class or method level;trueotherwise. The default implementation returnstrue, leading to regular introspection.
-
parseCacheAnnotations
从接口复制的说明:CacheAnnotationParserParse the cache definition for the given class, based on an annotation type understood by this parser.This essentially parses a known cache annotation into Framework's metadata attribute class. Returns
nullif the class is not cacheable.- 指定者:
parseCacheAnnotations在接口中CacheAnnotationParser- 参数:
type- the annotated class- 返回:
- the configured caching operation, or
nullif none found - 另请参阅:
-
parseCacheAnnotations
从接口复制的说明:CacheAnnotationParserParse the cache definition for the given method, based on an annotation type understood by this parser.This essentially parses a known cache annotation into Framework's metadata attribute class. Returns
nullif the method is not cacheable.- 指定者:
parseCacheAnnotations在接口中CacheAnnotationParser- 参数:
method- the annotated method- 返回:
- the configured caching operation, or
nullif none found - 另请参阅:
-
equals
-
hashCode
public int hashCode()
-