<cfcomponent
output="false"
hint="I provide application settings and define event handlers.">
<cfset THIS.Name = "Ajax #Hash( GetCurrentTemplatePath() )#" />
<cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 5, 0 ) />
<cfset THIS.SessionManagement = false />
<cffunction
name="OnApplicationStart"
access="public"
returntype="boolean"
output="false"
hint="I execute when an application needs to be initialized.">
<cfset StructClear( APPLICATION ) />
<cfset APPLICATION.MessageService = CreateObject( "component", "MessageService" ).Init() />
<cfreturn true />
</cffunction>
<cffunction
name="OnRequestStart"
access="public"
returntype="boolean"
output="false"
hint="I execute when a request needs to be initialized.">
<cfif StructKeyExists( URL, "reset" )>
<cfset THIS.OnApplicationStart() />
</cfif>
<cfreturn true />
</cffunction>
</cfcomponent>