All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feingto.cloud.config.redis.adapter.RedisCacheablePointcutAdvisor Maven / Gradle / Ivy

The newest version!
package com.feingto.cloud.config.redis.adapter;

import com.feingto.cloud.config.redis.RedisCacheable;
import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor;
import org.springframework.lang.NonNull;

import java.lang.reflect.Method;

/**
 * RedisCacheable 方法切入点代理
 *
 * @author longfei
 */
public class RedisCacheablePointcutAdvisor extends StaticMethodMatcherPointcutAdvisor {
    private static final long serialVersionUID = -5819803389135259940L;

    @Override
    public boolean matches(Method method, @NonNull Class targetClass) {
        return method.isAnnotationPresent(RedisCacheable.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy