Package org.springmodules.cache.provider.jboss

Examples of org.springmodules.cache.provider.jboss.JbossCacheCachingModel


    assertEquals(expectedCachedObject, actual);
  }

  private Object getCachedObject(int keyAndModelIndex) throws Exception {
    KeyAndModel keyAndModel = getKeyAndModel(keyAndModelIndex);
    JbossCacheCachingModel model = (JbossCacheCachingModel) keyAndModel.model;
    return cacheManager.get(model.getNode(), keyAndModel.key);
  }
View Full Code Here


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

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

    CachingModel actual = parser.parseCachingModel(element);
    CachingModel expected = new JbossCacheCachingModel(node);

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

TOP

Related Classes of org.springmodules.cache.provider.jboss.JbossCacheCachingModel

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.