return new ThreadPoolConfig(isEnabled, numThreads, capacity);
}
private static void handleDefaultsViewResources(Configuration configuration, Element parentElement)
{
DOMElementIterator nodeIterator = new DOMElementIterator(parentElement.getChildNodes());
while (nodeIterator.hasNext())
{
Element subElement = nodeIterator.next();
if (subElement.getNodeName().equals("share-views"))
{
String valueText = getRequiredAttribute(subElement, "enabled");
Boolean value = Boolean.parseBoolean(valueText);
configuration.getEngineDefaults().getViewResources().setShareViews(value);