On Fri, 18 Mar 2005 18:18:02 +0530, Michael Traher
<[EMAIL PROTECTED]> wrote:
> Use fusebox.init.cfm to instantiate where required. Then use <invoke>
> in circuits.xml.
> 
> Use <class> in fusebox.xml together with <instantiate> and <invoke> in
> circuits.xml.

I alternate between these two. The former has the benefit of allowing
a simple <cfif> / <cflock> / <cfif> for initialization. The latter has
the benefit of keeping it all 'in' Fusebox. The downside of the
latter, as you surmise, is locking is harder - but you could always
use John Beynon's lock verb, taking advantage of the custom lexicon
'alpha feature'...

> control of locking if I wanted to place my object in a persistent
> scope.

<soapbox>
Pet peeve: they are *shared* scopes, not persistent scopes. Persistent
means database or filesystem. If CFers want to be taken seriously in
the broader IT world they need to stop misusing words and phrases that
have well-defined meanings.
</soapbox>

> I've also had the idea of sort of combining the use of <class> with
> the fusebox.init.cfm file and using the application.fusebox.classes
> structure to do my instantiating - i.e. getting the benefit of this
> central variable, but keeping more control of the creating of objects.

Resist the temptation. If you're keen to use <class>, do the locking
in Fusebox too.
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Protect your mail server with built in anti-virus protection. It's not only 
good for you, it's good for everybody.
http://www.houseoffusion.com/banners/view.cfm?bannerid=39

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6673
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to