Package play.cache

Examples of play.cache.CacheFor


      // the cache has not been filled up yet.
      Method[] mths = class1.getDeclaredMethods();
      for (Method m : mths) {
        if (m.getName().equalsIgnoreCase(actionName) && Modifier.isPublic(m.getModifiers())) {
          if (!m.isAnnotationPresent(Before.class) && !m.isAnnotationPresent(After.class) && !m.isAnnotationPresent(Finally.class)) {
            CacheFor cacheFor = m.getAnnotation(CacheFor.class);
            if (cacheFor == null) {
              // well no annotation level cache spec
              cacheForVal = "";
            }
            else {
              cacheForVal = cacheFor.value();
            }
            JapidPlugin.getCache().put(cacheForKey, cacheForVal);
          }
        }
      }
View Full Code Here


      // the cache has not been filled up yet.
      Method[] mths = class1.getDeclaredMethods();
      for (Method m : mths) {
        if (m.getName().equalsIgnoreCase(actionName) && Modifier.isPublic(m.getModifiers())) {
          if (!m.isAnnotationPresent(Before.class) && !m.isAnnotationPresent(After.class) && !m.isAnnotationPresent(Finally.class)) {
            CacheFor cacheFor = m.getAnnotation(CacheFor.class);
            if (cacheFor == null) {
              // well no annotation level cache spec
              cacheForVal = "";
            }
            else {
              cacheForVal = cacheFor.value();
            }
            JapidPlugin.getCache().put(cacheForKey, cacheForVal);
          }
        }
      }
View Full Code Here

TOP

Related Classes of play.cache.CacheFor

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.