org.springframework.cache.annotation

## 类 SpringCacheAnnotationParser

- java.lang.Object
- - org.springframework.cache.annotation.SpringCacheAnnotationParser

- 所有已实现的接口:
    Serializable, CacheAnnotationParser

      public class SpringCacheAnnotationParser
      extends Object
      implements CacheAnnotationParser, Serializable

  Strategy implementation for parsing Spring's `Caching`, `Cacheable`, `CacheEvict`, and `CachePut` annotations.
  从以下版本开始:
    3.1
  作者:
    Costin Leau, Juergen Hoeller, Chris Beams, Phillip Webb, Stephane Nicoll, Sam Brannen
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `SpringCacheAnnotationParser()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object other)`
    `int` | `hashCode()`
    `Collection<CacheOperation>` | `parseCacheAnnotations(Class<?> type)` Parse the cache definition for the given class, based on an annotation type understood by this parser.
    `Collection<CacheOperation>` | `parseCacheAnnotations(Method method)` Parse the cache definition for the given method, based on an annotation type understood by this parser.

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SpringCacheAnnotationParser

          public SpringCacheAnnotationParser()

  - ### 方法详细资料

    - #### parseCacheAnnotations

          @Nullable
          public Collection<CacheOperation> parseCacheAnnotations(Class<?> type)

      从接口复制的说明: `CacheAnnotationParser`
      Parse the cache definition for the given class, based on an annotation type understood by this parser.

      This essentially parses a known cache annotation into Spring's metadata attribute class. Returns `null` if the class is not cacheable.

      指定者:
        `parseCacheAnnotations` 在接口中 `CacheAnnotationParser`
      参数:
        `type` - the annotated class
      返回:
        the configured caching operation, or `null` if none found
      另请参阅:
        `AnnotationCacheOperationSource.findCacheOperations(Class)`

    - #### parseCacheAnnotations

          @Nullable
          public Collection<CacheOperation> parseCacheAnnotations(Method method)

      从接口复制的说明: `CacheAnnotationParser`
      Parse the cache definition for the given method, based on an annotation type understood by this parser.

      This essentially parses a known cache annotation into Spring's metadata attribute class. Returns `null` if the method is not cacheable.

      指定者:
        `parseCacheAnnotations` 在接口中 `CacheAnnotationParser`
      参数:
        `method` - the annotated method
      返回:
        the configured caching operation, or `null` if none found
      另请参阅:
        `AnnotationCacheOperationSource.findCacheOperations(Method)`

    - #### equals

          public boolean equals(Object other)

      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      覆盖:
        `hashCode` 在类中 `Object`