//package com.elab.redis.interceptor;
//
//import org.aopalliance.aop.Advice;
//import org.springframework.aop.Pointcut;
//import org.springframework.aop.support.AbstractPointcutAdvisor;
//import org.springframework.util.Assert;
//
///**
// * @author ： liukx
// * @time ： 2020/7/9 - 19:59
// */
//public class CacheAttributeSourceAdvisor extends AbstractPointcutAdvisor {
//
//    private CacheInterceptor cacheInterceptor;
//
//    private CacheAttributeSourcePointcut pointcut;
//
//    public void setCacheInterceptor(CacheInterceptor cacheInterceptor) {
//        this.cacheInterceptor = cacheInterceptor;
//    }
//
//    @Override
//    public Pointcut getPointcut() {
//        return pointcut;
//    }
//
//    @Override
//    public Advice getAdvice() {
//        Assert.state(this.cacheInterceptor != null, "No cacheInterceptor set");
//        return cacheInterceptor;
//    }
//}
