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

pro.fessional.wings.slardar.cache.spring.WingsCacheAnnoOprSource Maven / Gradle / Ivy

package pro.fessional.wings.slardar.cache.spring;

import org.jetbrains.annotations.NotNull;
import org.springframework.cache.annotation.AnnotationCacheOperationSource;
import org.springframework.cache.interceptor.CacheOperation;
import pro.fessional.wings.slardar.cache.WingsCacheHelper;

import java.lang.reflect.Method;
import java.util.Collection;

/**
 * @author trydofor
 * @since 2022-04-19
 */
public class WingsCacheAnnoOprSource extends AnnotationCacheOperationSource {

    @Override
    protected Collection findCacheOperations(@NotNull Method method) {
        final Collection ops = super.findCacheOperations(method);
        WingsCacheHelper.prepareOperation(method, ops);
        return ops;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy