/examples/api_jsonxml/Application.cfc
http://github.com/atuttle/Taffy · ColdFusion CFScript · 16 lines · 12 code · 4 blank · 0 comment · 0 complexity · 550b5945985edf07f8a8dd6b4c51ca81 MD5 · raw file
- <cfcomponent extends="taffy.core.api">
- <cfscript>
- this.name = hash(getCurrentTemplatePath());
- function applicationStartEvent(){
- application.JsonUtil = createObject("component", "resources.JSONUtil.JSONUtil");
- application.AnythingToXML = createObject("component", "resources.AnythingToXML.AnythingToXML");
- }
- function configureTaffy(){
- setDefaultRepresentationClass("resources.CustomRepresentationClass");
- }
- </cfscript>
- </cfcomponent>