<cfcomponent output="false" extends="coldspring.aop.MethodInterceptor">
	
<cffunction name="invokeMethod" access="public" returntype="any">
	<cfargument name="mi" type="coldspring.aop.MethodInvocation" required="true" />
	<cfset var record=structNew()>
	
	<cfset record.result=false>
	<cftry>
		<cfset record.data = arguments.mi.proceed() />
		<cfset record.result=true>
		<cfcatch type="any">
			<cfset record.data="Error: #getMetaData(arguments.mi.getTarget()).name#.#arguments.mi.getMethod().getMethodName()#() - #cfcatch.Message#: #cfcatch.Detail#">
			<cfset record.result=false>
		</cfcatch>
	</cftry>
	
	<cfreturn record />
	
 </cffunction>
	
</cfcomponent>
