com.nepxion.aquarius.limit.aop.LimitImportSelector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aquarius-limit-starter Show documentation
Show all versions of aquarius-limit-starter Show documentation
Nepxion Aquarius is a list of distribution components based on Redis + Zookeeper with Nepxion Matrix AOP framework
package com.nepxion.aquarius.limit.aop;
/**
* Title: Nepxion Aquarius
* Description: Nepxion Aquarius
* Copyright: Copyright (c) 2017-2050
* Company: Nepxion
* @author Haojun Ren
* @version 1.0
*/
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import com.nepxion.aquarius.limit.annotation.EnableLimit;
import com.nepxion.aquarius.limit.constant.LimitConstant;
import com.nepxion.matrix.selector.AbstractImportSelector;
import com.nepxion.matrix.selector.RelaxedPropertyResolver;
@Order(Ordered.LOWEST_PRECEDENCE - 100)
public class LimitImportSelector extends AbstractImportSelector {
@Override
protected boolean isEnabled() {
return new RelaxedPropertyResolver(getEnvironment()).getProperty(LimitConstant.LIMIT_ENABLED, Boolean.class, Boolean.TRUE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy