| 142 | | environmentXML = xmlParse( toString(environmentXML[1]) ); |
| 143 | | // Mail Settings |
| 144 | | oXMLParser.parseMailSettings(environmentXML[1],configSettings,oUtilities,true); |
| 145 | | // IOC |
| 146 | | oXMLParser.parseIOC(environmentXML[1],configSettings,oUtilities,true); |
| 147 | | // Models |
| 148 | | oXMLParser.parseModels(environmentXML[1],configSettings,oUtilities,true); |
| 149 | | // i18N |
| 150 | | oXMLParser.parseLocalization(environmentXML[1],configSettings,oUtilities,true); |
| 151 | | // Bug Tracers |
| 152 | | oXMLParser.parseBugTracers(environmentXML[1],configSettings,oUtilities,true); |
| 153 | | // Web Services |
| 154 | | oXMLParser.parseWebservices(environmentXML[1],configSettings,oUtilities,true); |
| 155 | | // Parse Datasources |
| 156 | | oXMLParser.parseDatasources(environmentXML[1],configSettings,oUtilities,true); |
| 157 | | // Parse Debugger Settings |
| 158 | | oXMLParser.parseDebuggerSettings(environmentXML[1],configSettings,oUtilities,true); |
| 159 | | // Reload Debugger Configuration |
| 160 | | controller.getDebuggerService().getDebuggerConfig().populate(configSettings.DebuggerSettings); |
| 161 | | // Parse Interceptors |
| 162 | | oXMLParser.parseInterceptors(environmentXML[1],configSettings,oUtilities,true); |
| 163 | | // Parse LogBox |
| 164 | | oXMLParser.parseLogBox(environmentXML[1],configSettings,oUtilities,true); |
| 165 | | // Reconfigure LogBox |
| 166 | | if( NOT structIsEmpty(configSettings["LogBoxConfig"]) ){ |
| 167 | | controller.getLogBox().configure(controller.getLogBox().getConfig()); |
| 168 | | controller.setLogger(controller.getLogBox().getLogger("coldbox.system.Controller")); |
| 169 | | } |
| | 142 | if( arrayLen(environmentXML) ){ |
| | 143 | environmentXML = xmlParse( toString(environmentXML[1]) ); |
| | 144 | // Mail Settings |
| | 145 | oXMLParser.parseMailSettings(environmentXML[1],configSettings,oUtilities,true); |
| | 146 | // IOC |
| | 147 | oXMLParser.parseIOC(environmentXML[1],configSettings,oUtilities,true); |
| | 148 | // Models |
| | 149 | oXMLParser.parseModels(environmentXML[1],configSettings,oUtilities,true); |
| | 150 | // i18N |
| | 151 | oXMLParser.parseLocalization(environmentXML[1],configSettings,oUtilities,true); |
| | 152 | // Bug Tracers |
| | 153 | oXMLParser.parseBugTracers(environmentXML[1],configSettings,oUtilities,true); |
| | 154 | // Web Services |
| | 155 | oXMLParser.parseWebservices(environmentXML[1],configSettings,oUtilities,true); |
| | 156 | // Parse Datasources |
| | 157 | oXMLParser.parseDatasources(environmentXML[1],configSettings,oUtilities,true); |
| | 158 | // Parse Debugger Settings |
| | 159 | oXMLParser.parseDebuggerSettings(environmentXML[1],configSettings,oUtilities,true); |
| | 160 | // Reload Debugger Configuration |
| | 161 | controller.getDebuggerService().getDebuggerConfig().populate(configSettings.DebuggerSettings); |
| | 162 | // Parse Interceptors |
| | 163 | oXMLParser.parseInterceptors(environmentXML[1],configSettings,oUtilities,true); |
| | 164 | // Parse LogBox |
| | 165 | oXMLParser.parseLogBox(environmentXML[1],configSettings,oUtilities,true); |
| | 166 | // Reconfigure LogBox |
| | 167 | if( NOT structIsEmpty(configSettings["LogBoxConfig"]) ){ |
| | 168 | controller.getLogBox().configure(controller.getLogBox().getConfig()); |
| | 169 | controller.setLogger(controller.getLogBox().getLogger("coldbox.system.Controller")); |
| | 170 | } |
| | 171 | } |