类 AnnotationCacheOperationSource

java.lang.Object
cn.taketoday.cache.interceptor.AbstractFallbackCacheOperationSource
cn.taketoday.cache.annotation.AnnotationCacheOperationSource
所有已实现的接口:
CacheOperationSource, Serializable

public class AnnotationCacheOperationSource extends AbstractFallbackCacheOperationSource implements Serializable
Implementation of the CacheOperationSource interface for working with caching metadata in annotation format.

This class reads Framework's Cacheable, CachePut and CacheEvict annotations and exposes corresponding caching operation definition to Framework's cache infrastructure. This class may also serve as base class for a custom CacheOperationSource.

从以下版本开始:
4.0
作者:
Costin Leau, Juergen Hoeller, Stephane Nicoll
另请参阅:
  • 构造器详细资料

    • AnnotationCacheOperationSource

      public AnnotationCacheOperationSource()
      Create a default AnnotationCacheOperationSource, supporting public methods that carry the Cacheable and CacheEvict annotations.
    • AnnotationCacheOperationSource

      public AnnotationCacheOperationSource(boolean publicMethodsOnly)
      Create a default AnnotationCacheOperationSource, supporting public methods that carry the Cacheable and CacheEvict annotations.
      参数:
      publicMethodsOnly - whether to support only annotated public methods typically for use with proxy-based AOP), or protected/private methods as well (typically used with AspectJ class weaving)
    • AnnotationCacheOperationSource

      public AnnotationCacheOperationSource(CacheAnnotationParser annotationParser)
      Create a custom AnnotationCacheOperationSource.
      参数:
      annotationParser - the CacheAnnotationParser to use
    • AnnotationCacheOperationSource

      public AnnotationCacheOperationSource(CacheAnnotationParser... annotationParsers)
      Create a custom AnnotationCacheOperationSource.
      参数:
      annotationParsers - the CacheAnnotationParser to use
    • AnnotationCacheOperationSource

      public AnnotationCacheOperationSource(Set<CacheAnnotationParser> annotationParsers)
      Create a custom AnnotationCacheOperationSource.
      参数:
      annotationParsers - the CacheAnnotationParser to use
  • 方法详细资料