Hi Kevin,
Thanks for the reply.
I was "pretty sure" that I wanted to crate it as a singleton and the
service layer CFC's too.
It didn't make much sense to me otherwise - but thought there might be
a gotchya that I wasn't aware of.
As for the FB lexicon - I visited Sean's link you supplied - that
It should be a singleton. You do not want to recreate the coldspring factory
on every request.
If you get a chance check out the Fusebox coldspring lexicon.
http://corfield.org/blog/index.cfm/do/blog.entry/entry/Fusebox_5_and_ColdSpring
On Thu, Apr 30, 2009 at 10:50 PM, Gavin Baumanis wrote:
>
>
Hi Everyone,
I have the following code in my index.cfm
Which is part of a fusebox application.
Thus EVERY request goes through index.cfm
My question is, should the bean factory be created as a singleton?
Should I wrap it in something like;
if(NOT StructKeyExists(application, "beanF