> Also, what is the generally accepted way to init your classes into the
> Application scope, is this just done in App.cfm or App.cfc?  Thanks for any
> guidance.

I am not one to give guidance since I am new to all this myself,
but... I don't use an object factory. Instead I init all of my
services, gateways and DAOs in Application.cfm. This provides the same
benefits Adrian mentioned for using object factories (there are
probably other benefits to using object factories that my approach
does not benefit from).

I have also chosen to place Application.cfm files in each directory.
That way I am only initting objects that will be used in that
directories files. If all of my objects for the entire application
were initted in one Application.cfm there would a rather long delay
when someone first visits the site.

On the other hand, Phill Nacelli has created an object factory that
looks pretty good. I was going to use it but he took a while to post
an explanation about it on his blog and I had to continue developing
my application so... maybe next time. He has since blogged about it
here: 
http://www.phillnacelli.net/blog/index.cfm/2006/11/21/ObjectFactory-Explained

HTH,
Aaron

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263567
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to