org.springframework.cache.interceptor.CacheOperationSource Java Examples

The following examples show how to use org.springframework.cache.interceptor.CacheOperationSource. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProxyCachingConfigurationInitializer.java    From spring-init with Apache License 2.0 5 votes vote down vote up
@Override
public void initialize(GenericApplicationContext context) {
	context.registerBean(ProxyCachingConfiguration.class, () -> new ProxyCachingConfiguration());
	context.registerBean(CacheInterceptor.class, () -> context.getBean(ProxyCachingConfiguration.class)
			.cacheInterceptor(context.getBean(CacheOperationSource.class)));
	context.registerBean(CacheOperationSource.class,
			() -> context.getBean(ProxyCachingConfiguration.class).cacheOperationSource());
	context.registerBean(CacheManagementConfigUtils.CACHE_ADVISOR_BEAN_NAME,
			BeanFactoryCacheOperationSourceAdvisor.class,
			() -> context.getBean(ProxyCachingConfiguration.class).cacheAdvisor(
					context.getBean(CacheOperationSource.class), context.getBean(CacheInterceptor.class)));
}
 
Example #2
Source File: ProxyCachingConfiguration.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Bean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
public CacheOperationSource cacheOperationSource() {
	return new AnnotationCacheOperationSource();
}
 
Example #3
Source File: ProxyCachingConfiguration.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Bean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
public CacheOperationSource cacheOperationSource() {
	return new AnnotationCacheOperationSource();
}
 
Example #4
Source File: ProxyCachingConfiguration.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Bean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
public CacheOperationSource cacheOperationSource() {
	return new AnnotationCacheOperationSource();
}
 
Example #5
Source File: FixUseSupperClassAutoConfiguration.java    From hsweb-framework with Apache License 2.0 4 votes vote down vote up
@Bean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
public CacheOperationSource cacheOperationSource() {
    return new FixUseSupperClassCacheOperationSource(new FixUseSupperClassAnnotationParser());
}
 
Example #6
Source File: ProxyCachingConfiguration.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Bean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
public CacheOperationSource cacheOperationSource() {
	return new AnnotationCacheOperationSource();
}