* @param the attribute value
* @return true if the attribute was processed
*/
protected boolean setAttributeValue(XMLElement elementName,
XMLElement attributeName, String value) {
RuntimeDescriptor descriptor =
(RuntimeDescriptor) getRuntimeDescriptor();
if (descriptor==null) {
throw new RuntimeException(
"Trying to set values on a null descriptor");
}
if (attributeName.getQName().equals(RuntimeTagNames.EXTRA_CLASS_PATH)) {
descriptor.setAttributeValue(ClassLoader.EXTRA_CLASS_PATH, value);
return true;
} else if (attributeName.getQName().equals(RuntimeTagNames.DELEGATE)) {
descriptor.setAttributeValue(ClassLoader.DELEGATE, value);
return true;
} else if (attributeName.getQName().equals(
RuntimeTagNames.DYNAMIC_RELOAD_INTERVAL)) {
descriptor.setAttributeValue(ClassLoader.DYNAMIC_RELOAD_INTERVAL,
value);
return true;
}
return false;
}