Thanks Nathan, I am familiar with IoC and am using ColdSpring for this very purpose. However, it doesn't really work in this situation because the base class is never called directly though the beanfactory. The bean that is extending the base class may, but not the baseclass itself. This is my issue.
I am actually already doing something identical to what Byron suggested, but by calling the utility class through the beanfactory (which is stored in the application scope) instead of creating a new instance of the utility class using New. In either case, the utility class variable is being explicitly called/created within the base class, not passed in as an argument. On Fri, Feb 6, 2015 at 2:14 PM, Nathan Strutz <[email protected]> wrote: > > Dean, > > Byron's suggestion is a good one, and the right way to go unless you use an > IoC container. It's an object-oriented programming idea where, when you > come to the point of not wanting to instantiate all your objects. You > invert the control of creating away from what normally creates them into > some kind of bean factory. There are a number of them out there for > ColdFusion. ColdSpring, WireBox, and DI/1 to name the big ones off the top > of my head. An ioc container/factory will keep it all internally for you, > wire your bean up, then hand you what you asked for, all ready to go. > > The only other solution is to send in your utility object each time you > create something that needs it. > > -- [image: profile picture] *Dean Lawrence* *President* Internet Data Technology *Phone:* 888-438-4381 x701 *Web:* www.idatatech.com *Email:* [email protected] Programming | Database | Consulting | Training ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360070 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

