com.nepxion.aquarius.limit.configuration.LimitAopConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aquarius-limit-aop Show documentation
Show all versions of aquarius-limit-aop Show documentation
Nepxion Aquarius is a list of distribution components based on Redis + Zookeeper with Nepxion Matrix AOP framework
package com.nepxion.aquarius.limit.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.limit.aop.LimitAutoScanProxy;
import com.nepxion.aquarius.limit.aop.LimitInterceptor;
import com.nepxion.aquarius.limit.constant.LimitConstant;
@Configuration
public class LimitAopConfiguration {
@Value("${" + LimitConstant.LIMIT_SCAN_PACKAGES + ":}")
private String scanPackages;
@Bean
public LimitAutoScanProxy limitAutoScanProxy() {
return new LimitAutoScanProxy(scanPackages);
}
@Bean
public LimitInterceptor limitInterceptor() {
return new LimitInterceptor();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy