/examples/api_coldspring/Application.cfc
ColdFusion CFScript | 23 lines | 16 code | 6 blank | 1 comment | 0 complexity | 283187fd545c4097f36d40b5783273e6 MD5 | raw file
1<cfcomponent extends="taffy.core.api"> 2 <cfscript> 3 4 this.name = hash(getCurrentTemplatePath()); 5 6 variables.framework = {}; 7 variables.framework.debugKey = "debug"; 8 variables.framework.reloadKey = "reload"; 9 variables.framework.reloadPassword = "true"; 10 variables.framework.serializer = "taffy.core.nativeJsonSerializer"; 11 12 function onApplicationStart(){ 13 application.beanFactory = createObject("component", "coldspring.beans.DefaultXMLBeanFactory"); 14 application.beanFactory.loadBeans('/taffy/examples/api_coldspring/config/coldspring.xml'); 15 16 //note that we're modifying variables.framework here, after the application variable has been set 17 variables.framework.beanFactory = application.beanFactory; 18 19 return super.onApplicationStart(); 20 } 21 22 </cfscript> 23</cfcomponent>