My app uses Fusebox 5.5 and Coldspring 1.2. I'm trying to migrate to Coldspring 2.0. In Fusebox_lexicon/coldspring/initialize.cfm there is the following block of code:
// set ColdSpring in this fusebox instance's application space
fb_appendLine('<cfset myFusebox.getApplication().getApplicationData().#fb_.coldspringfactory# = createObject("component", "coldspring.beans.DefaultXmlBeanFactory").init( defaultProperties="#fb_.defaultproperties#" )/>');
fb_.i = 1;
// load all bean definitions
for ( fb_.i = 1; fb_.i lte arraylen( fb_.verbInfo.beans ); fb_.i = fb_.i + 1){
fb_appendLine('<cfset myFusebox.getApplication().getApplicationData().#fb_.coldspringfactory#.loadBeansFromXmlFile( beanDefinitionFile="#fb_.verbInfo.beans[fb_.i]#" ) />');
}
Now I know that coldspring.beans.DefaultXmlBeanFactory has now moved to coldspring.beans.xml.XmlBeanFactory, but the problem is that loadBeansFromXmlFile no longer exists.
Is there an equivalent in version 2.0? Should I be editing this file at all?
thanks