/examples/api_coldspring/Application.cfc
http://github.com/atuttle/Taffy · ColdFusion CFScript · 23 lines · 16 code · 6 blank · 1 comment · 0 complexity · 283187fd545c4097f36d40b5783273e6 MD5 · raw file
- <cfcomponent extends="taffy.core.api">
- <cfscript>
- this.name = hash(getCurrentTemplatePath());
- variables.framework = {};
- variables.framework.debugKey = "debug";
- variables.framework.reloadKey = "reload";
- variables.framework.reloadPassword = "true";
- variables.framework.serializer = "taffy.core.nativeJsonSerializer";
- function onApplicationStart(){
- application.beanFactory = createObject("component", "coldspring.beans.DefaultXMLBeanFactory");
- application.beanFactory.loadBeans('/taffy/examples/api_coldspring/config/coldspring.xml');
- //note that we're modifying variables.framework here, after the application variable has been set
- variables.framework.beanFactory = application.beanFactory;
- return super.onApplicationStart();
- }
- </cfscript>
- </cfcomponent>