/** * When an <code>entry</code> element is finished, the <code>value</code> * should be on the stop of the stack followed by the <code>key</code>. The * <code>RegionCreation</code> for the region being created should be below * that. */ private void endEntry() { Object value = stack.pop(); Object key = stack.pop(); RegionCreation region = (RegionCreation) stack.peek(); //changed by mitul after modifying code for Region implements Map region.put(key, value); }
/** * When an <code>entry</code> element is finished, the <code>value</code> * should be on the stop of the stack followed by the <code>key</code>. The * <code>RegionCreation</code> for the region being created should be below * that. */ private void endEntry() { Object value = stack.pop(); Object key = stack.pop(); RegionCreation region = (RegionCreation) stack.peek(); //changed by mitul after modifying code for Region implements Map region.put(key, value); }
/** * Tests creating a cache with entries defined in the root region */ public void testEntriesInRootRegion() throws CacheException { CacheCreation cache = new CacheCreation(); RegionCreation root = (RegionCreation) cache.createRegion("root", new RegionAttributesCreation(cache)); root.put("KEY1", "VALUE1"); root.put("KEY2", "VALUE2"); root.put("KEY3", "VALUE3"); testXml(cache); }