Do you mean something just like (real cheap n' nasty version)-
<cfscript>
function getSingleton()
{
if(NOT structKeyExists(instance, "singleton"))
{
instance.singleton = createObject("component", "singleton").init();
}
return instance.singleton;
}
</cfscript>
Lide that? or you asking something more complicated here?
On Apr 8, 2005 12:31 AM, Ken Dunnington <[EMAIL PROTECTED]> wrote:
>
> Just to start yet another tangent :) can anyone point me to a good
> reference on using Singleton in CF? Again, thanks for all the input.
>
--
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]