On 9/7/07, Paul Vernon <[EMAIL PROTECTED]> wrote: > > > On 9/7/07, Paul Vernon <[EMAIL PROTECTED]> wrote: > > I have a spider object. I have a string manipulation services object. > > The spider object is not an instance of a strings object because it > doesn't > make sense in an OO fashion for it to be. However, the spider object > relies > heavily on the string manipulation object. In fact, many of my objects > rely > on services offered by the strings object. > > Essentially, the string manipulation object is "injected" into those > objects > that need it so I don't have to keep re-instantiating multiple string > manipulation objects over and over again. This is extremely memory > efficient > as I have far fewer object instantiations within the applications object > hierarchy.
Agreed. ColdSpring does all this for me and I couldn't imagine building an application of any complexity without dependency injection. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288014 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

