PageRenderTime 19ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 3	<cfscript>
 4		this.name = hash(getCurrentTemplatePath());
 5
 6		function applicationStartEvent(){
 7			application.JsonUtil = createObject("component", "resources.JSONUtil.JSONUtil");
 8			application.AnythingToXML = createObject("component", "resources.AnythingToXML.AnythingToXML");
 9		}
10
11		function configureTaffy(){
12			setDefaultRepresentationClass("resources.CustomRepresentationClass");
13		}
14	</cfscript>
15
16</cfcomponent>