Package org.geomajas.plugin.caching.service

Examples of org.geomajas.plugin.caching.service.CacheContext


    // verify that data is in the cache
    DummyCacheService cache = (DummyCacheService)cacheManager.getCacheForTesting(LAYER_BEANS, CacheCategory.BOUNDS);
    Assert.assertEquals(1, cache.size());
    String key = cache.getKey();
    BoundsCacheContainer bcc = (BoundsCacheContainer) cache.getObject();
    CacheContext cc = bcc.getContext();
    bcc = new BoundsCacheContainer(new Envelope(0, 10, 0, 10));
    bcc.setContext(cc);
    cache.put(key, bcc);

    // get bounds again, the result should be different because we changed the cached value
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.caching.service.CacheContext

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.