* Slaps forehead * That was stupid.
I'll fix that now.
Mark
Mark
<cffunction name="hasDefinition" hint="Checks to see if the defintion
has been written" access="public" returntype="boolean" output="false">
<cfargument name="object" hint="BO of the Object"
type="transfer.com.object.Object" required="Yes">
<cfif NOT StructKeyExists(getWrittenFileCache(),
arguments.object.getClassName())>
<cflock name="transfer.Objectcache.hasDefinition.#object.getClassName()#"
throwontimeout="true" timeout="60">
<cfscript>
if(NOT StructKeyExists(getWrittenFileCache(),
arguments.object.getClassName()))
{
if(fileExists(getDefinitionPath() &
getDefinitionFileName(arguments.object)))
{
//put in an arbitrary value
StructInsert(getWrittenFileCache(), arguments.object.getClassName(), 1);
return true;
}
else
{
return false;
}
}
</cfscript>
</cflock>
</cfif>
<cfreturn true />
</cffunction>
I'm not seeing where that could possibly not return a boolean value?
Mark
Mark