return brc;
}
private static CacheLoaderConfig parseCacheLoaderConfig(Element element)
{
CacheLoaderConfig clc = new CacheLoaderConfig();
clc.setPassivation(XmlConfigHelper.readBooleanContents(element, "passivation"));
String s = XmlConfigHelper.readStringContents(element, "preload");
if (s != null && s.length() > 0) clc.setPreload(s);
clc.setShared(XmlConfigHelper.readBooleanContents(element, "shared"));
NodeList cacheLoaderNodes = element.getElementsByTagName("cacheloader");
for (int i = 0; i < cacheLoaderNodes.getLength(); i++)
{
Node node = cacheLoaderNodes.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE)
{
Element indivElement = (Element) node;
CacheLoaderConfig.IndividualCacheLoaderConfig iclc = new CacheLoaderConfig.IndividualCacheLoaderConfig();
iclc.setAsync(XmlConfigHelper.readBooleanContents(indivElement, "async", false));
iclc.setIgnoreModifications(XmlConfigHelper.readBooleanContents(indivElement, "ignoreModifications", false));
iclc.setFetchPersistentState(XmlConfigHelper.readBooleanContents(indivElement, "fetchPersistentState", false));
iclc.setPurgeOnStartup(XmlConfigHelper.readBooleanContents(indivElement, "purgeOnStartup", false));
iclc.setClassName(XmlConfigHelper.readStringContents(indivElement, "class"));
iclc.setProperties(XmlConfigHelper.readPropertiesContents(indivElement, "properties"));
SingletonStoreConfig ssc = parseSingletonStoreConfig(indivElement);
if (ssc != null)
{
iclc.setSingletonStoreConfig(ssc);
}
clc.addIndividualCacheLoaderConfig(iclc);
}
}
return clc;
}