Class<?> c = Class.forName( cattr.getMemoryCacheName() ); @SuppressWarnings("unchecked") // Need cast IMemoryCache<K, V> newInstance = (IMemoryCache<K, V>) c.newInstance();
Class<?> c = Class.forName( cattr.getMemoryCacheName() ); @SuppressWarnings("unchecked") // Need cast IMemoryCache<K, V> newInstance = (IMemoryCache<K, V>) c.newInstance();
/** * Verify that the mru gets used by a non-defined region when it is set as the default in the * default region. * <p> * @throws CacheException */ public void testLoadFromCCF() throws CacheException { CacheAccess<String, String> cache = JCS.getInstance( "testPutGet" ); String memoryCacheName = cache.getCacheAttributes().getMemoryCacheName(); assertTrue( "Cache name should have MRU in it.", memoryCacheName.indexOf( "MRUMemoryCache" ) != -1 ); }
/** * Verify that the mru gets used by a non-defined region when it is set as the default in the * default region. * <p> * @throws CacheException */ public void testLoadFromCCF() throws CacheException { CacheAccess<String, String> cache = JCS.getInstance( "testPutGet" ); String memoryCacheName = cache.getCacheAttributes().getMemoryCacheName(); assertTrue( "Cache name should have MRU in it.", memoryCacheName.indexOf( "MRUMemoryCache" ) != -1 ); }
/** * Verify that the mru gets used by a non-defined region when it is set as the default in the * default region. * <p> * @throws CacheException */ public void testLoadFromCCF() throws CacheException { CacheAccess<String, String> cache = JCS.getInstance( "testLoadFromCCF" ); String memoryCacheName = cache.getCacheAttributes().getMemoryCacheName(); assertTrue( "Cache name should have LHMLRU in it.", memoryCacheName.indexOf( "LHMLRUMemoryCache" ) != -1 ); }
/** * Verify that the mru gets used by a non-defined region when it is set as the default in the * default region. * <p> * @throws CacheException */ public void testLoadFromCCF() throws CacheException { CacheAccess<String, String> cache = JCS.getInstance( "testLoadFromCCF" ); String memoryCacheName = cache.getCacheAttributes().getMemoryCacheName(); assertTrue( "Cache name should have LHMLRU in it.", memoryCacheName.indexOf( "LHMLRUMemoryCache" ) != -1 ); }
/** * Verify that the cache gets used by a non-defined region when it is set as the default in the * default region. * <p> * @throws CacheException */ public void testLoadFromCCF() throws CacheException { CacheAccess<String, String> cache = JCS.getInstance( "testPutGet" ); String memoryCacheName = cache.getCacheAttributes().getMemoryCacheName(); assertTrue( "Cache name should have SoftReference in it.", memoryCacheName.indexOf( "SoftReferenceMemoryCache" ) != -1 ); }