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

com.nepxion.aquarius.cache.aop.CacheAutoScanProxy Maven / Gradle / Ivy

Go to download

Nepxion Aquarius is a list of distribution components based on Redis + Zookeeper with Nepxion Matrix AOP framework

There is a newer version: 2.0.13
Show newest version
package com.nepxion.aquarius.cache.aop;

/**
 * 

Title: Nepxion Aquarius

*

Description: Nepxion Aquarius

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import java.lang.annotation.Annotation; import com.nepxion.aquarius.cache.annotation.CacheEvict; import com.nepxion.aquarius.cache.annotation.CachePut; import com.nepxion.aquarius.cache.annotation.Cacheable; import com.nepxion.matrix.proxy.aop.DefaultAutoScanProxy; import com.nepxion.matrix.proxy.mode.ProxyMode; import com.nepxion.matrix.proxy.mode.ScanMode; public class CacheAutoScanProxy extends DefaultAutoScanProxy { private static final long serialVersionUID = 5099476398968133135L; private String[] commonInterceptorNames; @SuppressWarnings("rawtypes") private Class[] methodAnnotations; public CacheAutoScanProxy(String scanPackages) { super(scanPackages, ProxyMode.BY_METHOD_ANNOTATION_ONLY, ScanMode.FOR_METHOD_ANNOTATION_ONLY); } @Override protected String[] getCommonInterceptorNames() { if (commonInterceptorNames == null) { commonInterceptorNames = new String[] { "cacheInterceptor" }; } return commonInterceptorNames; } @SuppressWarnings("unchecked") @Override protected Class[] getMethodAnnotations() { if (methodAnnotations == null) { methodAnnotations = new Class[] { Cacheable.class, CachePut.class, CacheEvict.class }; } return methodAnnotations; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy