public class

CompositeCacheDefinitionSource

extends Object
implements Serializable CacheDefinitionSource
java.lang.Object
   ↳ org.springframework.cache.interceptor.CompositeCacheDefinitionSource

Class Overview

Composite CacheDefinitionSource implementation that iterates over a given array of CacheDefinitionSource instances.

Summary

Public Constructors
CompositeCacheDefinitionSource(CacheDefinitionSource[] cacheDefinitionSources)
Create a new CompositeCachingDefinitionSource for the given sources.
Public Methods
CacheDefinition getCacheDefinition(Method method, Class<?> targetClass)
Return the cache operation definition for this method.
final CacheDefinitionSource[] getCacheDefinitionSources()
Return the CacheDefinitionSource instances that this CompositeCachingDefinitionSource combines.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.cache.interceptor.CacheDefinitionSource

Public Constructors

public CompositeCacheDefinitionSource (CacheDefinitionSource[] cacheDefinitionSources)

Create a new CompositeCachingDefinitionSource for the given sources.

Public Methods

public CacheDefinition getCacheDefinition (Method method, Class<?> targetClass)

Return the cache operation definition for this method. Return null if the method is not cacheable.

Parameters
method method
targetClass target class. May be null, in which case the declaring class of the method must be used.
Returns
  • CacheDefinition the matching cache operation definition, or null if none found

public final CacheDefinitionSource[] getCacheDefinitionSources ()

Return the CacheDefinitionSource instances that this CompositeCachingDefinitionSource combines.