com.ideaaedi.extspringcache.caffeine.ExtCaffeineCacheInitParser Maven / Gradle / Ivy
The newest version!
package com.ideaaedi.extspringcache.caffeine;
import com.ideaaedi.extspringcache.annotation.ExtCacheableOop;
import com.ideaaedi.extspringcache.parser.AbstractExtCacheInitParser;
import com.ideaaedi.extspringcache.parser.ExtCacheChecker;
import com.ideaaedi.extspringcache.support.SafeContainer;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
/**
* ext-caffeine-cache初始化解析器
*
* @author JustryDeng
* @since 2020/11/4 18:44:39
*/
@Slf4j
public class ExtCaffeineCacheInitParser extends AbstractExtCacheInitParser {
public static final String BEAN_NAME = "extCaffeineCacheInitParser";
@Resource(name = ExtCacheChecker.BEAN_NAME)
private ExtCacheChecker extCacheChecker;
@Override
public void caffeineParserLogic(ExtCacheableOop extCacheableOop) {
extCacheChecker.checkCaffeineAnnotationInfo(extCacheableOop);
SafeContainer.Data4Caffeine.initRedisData();
}
}