Think you might want something like this in your base cfc? I think you'd
not want the UtilClass to inherit the base class however, or this would
lead to a circular reference and probably kill the app.
component name='baseClass' {
variables.utilClass = new UtilClass();
}
On Fri, Feb 6, 2015 at 11:14 AM, Dean Lawrence <[email protected]> wrote:
>
> All of my classes in my app are derived from a base class. I've been using
> this successfully for the last couple of years. However, within the base
> class, I need the use of a utility class as well. I am currently calling it
> from the application scope, but I want to better encapsulate the base class
> and inject the utility class into the base class instead of relying on an
> external reference. My question is, how do I do this? I know how to do it
> with a regular class file, but not with a class that is being inherited.
> Can anyone give me some direction?
>
> Thanks,
>
> --
>
> [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:360062
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm