com.feingto.cloud.config.redis.adapter.RedisCacheEvictPointcutAdvisor Maven / Gradle / Ivy
The newest version!
package com.feingto.cloud.config.redis.adapter;
import com.feingto.cloud.config.redis.RedisCacheEvict;
import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor;
import org.springframework.lang.NonNull;
import java.lang.reflect.Method;
/**
* RedisCacheEvict 方法切入点代理
*
* @author longfei
*/
public class RedisCacheEvictPointcutAdvisor extends StaticMethodMatcherPointcutAdvisor {
private static final long serialVersionUID = -4324714194257736410L;
@Override
public boolean matches(Method method, @NonNull Class> targetClass) {
return method.isAnnotationPresent(RedisCacheEvict.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy