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