else if (beanDefinitionDefaults.getDestroyMethodName() != null)
{
beanDef.setDestroyMethodName(beanDefinitionDefaults.getDestroyMethodName());
}
ConstructorArgumentValues constructorArgs = beanDef.getConstructorArgumentValues();
String scriptSource = element.getAttribute(SCRIPT_SOURCE_ATTRIBUTE);
//have to do this here, as otherwise the Script post processor will take over
if(!element.hasAttribute(SCRIPT_SOURCE_RELATIVE_ATTRIBUTE) || element.getAttribute(SCRIPT_SOURCE_RELATIVE_ATTRIBUTE).equals("true"))
{
//strip off the file://
scriptSource = scriptSource.substring(7);
scriptSource = Utils.expandPath(scriptSource, FusionContext.getCurrent().pageContext);
scriptSource = "file://" + scriptSource;
}
String[] interfaces = element.getAttribute(SCRIPT_INTERFACES_ATTRIBUTE).split(",");
constructorArgs.addIndexedArgumentValue(0, scriptSource);
constructorArgs.addIndexedArgumentValue(1, interfaces);
// Add any property definitions that need adding.
parserContext.getDelegate().parsePropertyElements(element, beanDef);
return beanDef;