com.nepxion.aquarius.cache.configuration.CacheAopConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aquarius-cache-aop Show documentation
Show all versions of aquarius-cache-aop Show documentation
Nepxion Aquarius is a list of distribution components based on Redis + Zookeeper with Nepxion Matrix AOP framework
package com.nepxion.aquarius.cache.configuration;
/**
* Title: Nepxion Aquarius
* Description: Nepxion Aquarius
* Copyright: Copyright (c) 2017-2050
* Company: Nepxion
* @author Haojun Ren
* @version 1.0
*/
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.nepxion.aquarius.cache.aop.CacheAutoScanProxy;
import com.nepxion.aquarius.cache.aop.CacheInterceptor;
import com.nepxion.aquarius.cache.constant.CacheConstant;
@Configuration
public class CacheAopConfiguration {
@Value("${" + CacheConstant.CACHE_SCAN_PACKAGES + ":}")
private String scanPackages;
@Bean
public CacheAutoScanProxy cacheAutoScanProxy() {
return new CacheAutoScanProxy(scanPackages);
}
@Bean
public CacheInterceptor cacheInterceptor() {
return new CacheInterceptor();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy