Package org.springmodules.cache.provider.jcs

Examples of org.springmodules.cache.provider.jcs.JcsCachingModel


    assertEquals(expectedCachedObject, cacheElement.getVal());
  }

  private ICacheElement getCacheElement(int keyAndModelIndex) {
    KeyAndModel keyAndModel = getKeyAndModel(keyAndModelIndex);
    JcsCachingModel model = (JcsCachingModel) keyAndModel.model;

    String cacheName = model.getCacheName();
    CompositeCache cache = cacheManager.getCache(cacheName);
    GroupId groupId = new GroupId(cacheName, model.getGroup());
    GroupAttrName groupAttrName = new GroupAttrName(groupId, keyAndModel.key);
    return cache.get(groupAttrName);
  }
View Full Code Here


   * @see CacheModelParser#parseCachingModel(Element)
   */
  public CachingModel parseCachingModel(Element element) {
    String cacheName = element.getAttribute("cacheName");
    String group = element.getAttribute("group");
    JcsCachingModel model = new JcsCachingModel(cacheName, group);
    return model;
  }
View Full Code Here

    Element element = new DomElementStub("caching");
    element.setAttribute("cacheName", cacheName);

    CachingModel actual = parser.parseCachingModel(element);
    CachingModel expected = new JcsCachingModel(cacheName);

    assertEquals(expected, actual);
  }
View Full Code Here

TOP

Related Classes of org.springmodules.cache.provider.jcs.JcsCachingModel

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.