Files
svc-api-x/v1/taffy/examples/api_coldspring/Application.cfc
T
2024-10-23 11:17:42 +03:00

24 lines
792 B
Plaintext

<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>