Package com.skyline.common.cache.annotation

Examples of com.skyline.common.cache.annotation.Cache


  private void parseMethodAnnotation(Annotation[] annotations) {
    for (Annotation annotation : annotations) {
      Class<? extends Annotation> annotationType = annotation.annotationType();
      if (annotationType.equals(Cache.class)) {
        Cache cache = (Cache) annotation;
        isCachable = true;
        keyPattern = cache.keyPattern();
        expire = cache.expire();
        isPagination = cache.pagination();
        categoryType = cache.type();
        isGenericCache = isCategoryTypeGeneric(categoryType);
      }
      if (annotationType.equals(CacheDelete.class)) { // 如categoryType等可能重复的数据以删除为准
        isCacheDelete = true;
        CacheDelete cacheDelete = (CacheDelete) annotation;
View Full Code Here

TOP

Related Classes of com.skyline.common.cache.annotation.Cache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.