cn.crane4j.extension.spring.SpringCacheableContainerProcessor Maven / Gradle / Ivy
package cn.crane4j.extension.spring;
import cn.crane4j.annotation.ContainerCache;
import cn.crane4j.core.cache.CacheDefinition;
import cn.crane4j.core.cache.CacheableContainerProcessor;
import cn.crane4j.core.container.Container;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.springframework.aop.support.AopUtils;
import org.springframework.context.ApplicationContext;
import org.springframework.core.annotation.AnnotatedElementUtils;
import java.util.Objects;
/**
* A {@link CacheableContainerProcessor} implementation
* which support process spring annotation and bean proxy.
*
* @author huangchengxing
*/
public class SpringCacheableContainerProcessor extends CacheableContainerProcessor {
public SpringCacheableContainerProcessor(Crane4jApplicationContext configuration) {
super(configuration);
}
/**
* Get container class.
*
* @param container container
* @return annotation
*/
@Override
protected CacheDefinition getCacheDefinitionFromContainer(Container
© 2015 - 2024 Weber Informatics LLC | Privacy Policy