org.springframework.cache.annotation

Interface CacheAnnotationParser

    • Method Detail

      • parseCacheAnnotations

        @Nullable
        java.util.Collection<CacheOperation> parseCacheAnnotations(java.lang.Class<?> type)
        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.

        Parameters:
        type - the annotated class
        Returns:
        the configured caching operation, or null if none found
        See Also:
        AnnotationCacheOperationSource.findCacheOperations(Class)
      • parseCacheAnnotations

        @Nullable
        java.util.Collection<CacheOperation> parseCacheAnnotations(java.lang.reflect.Method method)
        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.

        Parameters:
        method - the annotated method
        Returns:
        the configured caching operation, or null if none found
        See Also:
        AnnotationCacheOperationSource.findCacheOperations(Method)