org.springframework.cache.interceptor

## 类 SimpleCacheResolver

- java.lang.Object
- - org.springframework.cache.interceptor.AbstractCacheResolver
  - - org.springframework.cache.interceptor.SimpleCacheResolver

- 所有已实现的接口:
    org.springframework.beans.factory.InitializingBean, CacheResolver

      public class SimpleCacheResolver
      extends AbstractCacheResolver

  A simple `CacheResolver` that resolves the `Cache` instance(s) based on a configurable `CacheManager` and the name of the cache(s) as provided by `getCacheNames()`
  从以下版本开始:
    4.1
  作者:
    Stephane Nicoll
  另请参阅:
    `BasicOperation.getCacheNames()`

- - ### 构造器概要

    构造器
    构造器和说明
    `SimpleCacheResolver()`
    `SimpleCacheResolver(CacheManager cacheManager)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected Collection<String>` | `getCacheNames(CacheOperationInvocationContext<?> context)` Provide the name of the cache(s) to resolve against the current cache manager.

    - ### 从类继承的方法 org.springframework.cache.interceptor.AbstractCacheResolver

      `afterPropertiesSet, getCacheManager, resolveCaches, setCacheManager`

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

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

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

    - #### SimpleCacheResolver

          public SimpleCacheResolver()

    - #### SimpleCacheResolver

          public SimpleCacheResolver(CacheManager cacheManager)

  - ### 方法详细资料

    - #### getCacheNames

          protected Collection<String> getCacheNames(CacheOperationInvocationContext<?> context)

      从类复制的说明: `AbstractCacheResolver`
      Provide the name of the cache(s) to resolve against the current cache manager.

      It is acceptable to return `null` to indicate that no cache could be resolved for this invocation.

      指定者:
        `getCacheNames` 在类中 `AbstractCacheResolver`
      参数:
        `context` - the context of the particular invocation
      返回:
        the cache name(s) to resolve, or `null` if no cache should be resolved