/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

  1. <cfcomponent extends="taffy.core.api">
  2. <cfscript>
  3. this.name = hash(getCurrentTemplatePath());
  4. function applicationStartEvent(){
  5. application.JsonUtil = createObject("component", "resources.JSONUtil.JSONUtil");
  6. application.AnythingToXML = createObject("component", "resources.AnythingToXML.AnythingToXML");
  7. }
  8. function configureTaffy(){
  9. setDefaultRepresentationClass("resources.CustomRepresentationClass");
  10. }
  11. </cfscript>
  12. </cfcomponent>