Spring Framework AbstractCachingConfiguration - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AbstractCachingConfiguration class.

This code example shows how to use the following methods:
 * @since 3.1 
 * @see org.springframework.cache.annotation.EnableCaching 
 * @see org.springframework.cache.annotation.CachingConfigurationSelector 
 */ 
@Configuration 
public class AspectJCachingConfiguration extends AbstractCachingConfiguration { 
 
	@Bean(name = CacheManagementConfigUtils.CACHE_ASPECT_BEAN_NAME) 
	@Role(BeanDefinition.ROLE_INFRASTRUCTURE) 
	public AnnotationCacheAspect cacheAspect() { 
		AnnotationCacheAspect cacheAspect = AnnotationCacheAspect.aspectOf(); 
		if (this.cacheManager != null) { 
			cacheAspect.setCacheManager(this.cacheManager); 
		} 
		if (this.keyGenerator != null) { 
			cacheAspect.setKeyGenerator(this.keyGenerator); 
		} 
		return cacheAspect; 
	} 
 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:useCachingConfigurer
 
	protected CacheResolver exceptionCacheResolver; 
 
	@Override 
	protected void useCachingConfigurer(JCacheConfigurer config) { 
		super.useCachingConfigurer(config); 
		this.exceptionCacheResolver = config.exceptionCacheResolver(); 
	} 
 
	@Bean(name = "jCacheOperationSource") 
	@Role(BeanDefinition.ROLE_INFRASTRUCTURE) 
	public JCacheOperationSource cacheOperationSource() { 
		DefaultJCacheOperationSource source = new DefaultJCacheOperationSource(); 
		if (this.cacheManager != null) { 
			source.setCacheManager(this.cacheManager); 
		} 
		if (this.keyGenerator != null) { 
			source.setKeyGenerator(this.keyGenerator); 
		} 
		if (this.cacheResolver != null) { 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java