> -----Original Message----- > From: Barney Boisvert [mailto:[EMAIL PROTECTED] > Sent: Friday, March 18, 2005 2:02 PM > To: CF-Talk > Subject: Re: Best, Fastest, Cleanest, Most Elegant way to determine if > your in an application? > > > (My CFCs store metadata about themselves - if they're called in an > > application they store it the application scope, if they're called > outside > > of an application they store it in the server scope.) > > Why don't they store it in their 'variables' scope, so it's internal? > That way the burden of picking the right scope to store the info in > rests solely on the shoulders of the app developer, who will know > whether application or server is more appropriate.
The data stored is specific to a CFC class. So while I might have over a hundred instances of "cfc_Depressedpress.Framework.DP_Session" I only have one metadata cache for all of them. Also building the metadata can be time-consuming the first time through while referencing a memory-cache is insignificant. Basically using the variables scope would just be to slow and wasteful. However there is a reference to the metadata cache in each CFC's variables scope. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199391 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

