Note: class does not rely on element position in the configuration file. It does not rely on element's name either.
296297298299300301302303
} private void configureEviction(Element element) { if (element == null) return; //no eviction might be configured EvictionElementParser evictionElementParser = new EvictionElementParser(coreNamespace); config.setEvictionConfig(evictionElementParser.parseEvictionElement(element)); }
6970717273747576777879
"</region></eviction>"; Element element = XmlConfigHelper.stringToElementInCoreNS(xml); boolean caught = false; try { EvictionConfig ec = new EvictionElementParser().parseEvictionElement(element); ec.getEvictionRegionConfigs().get(0).validate(); } catch (ConfigurationException ce) { caught = true;
44454647484950
private EvictionElementParser evictionElementParser; @BeforeMethod public void setUp() { evictionElementParser = new EvictionElementParser(); }
294295296297298299300301
} private void configureEviction(Element element) { if (element == null) return; //no eviction might be configured EvictionElementParser evictionElementParser = new EvictionElementParser(); config.setEvictionConfig(evictionElementParser.parseEvictionElement(element)); }
293294295296297298299300
287288289290291292293294