Coldspring 2.0 and Fusebox 5.5 (XML)

175 Views Asked by At

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

1

There are 1 best solutions below

0
On

I actually started looking at alternative frameworks, including Coldbox following this. I was initially concerned that CF10 / Coldspring 1.2 would not play nice (the code analyzer throws up some areas of concern), but now I think it may be OK.