You're using ColdSpring and you say CS is not autowiring the field on a
base class? It's supposed to, FYI, it just is. If it does not, you can do
it explicitly in your xml file (if you use the DefaultXMLBeanFactory.cfc).
Also, make sure the autowire option is on, at least for this object if not
for all of your beans. It's strange that it is not working, maybe this
would be a question for the ColdSpring list.

Nathan Strutz

On Fri Feb 06 2015 at 3:30:14 PM Dean Lawrence <[email protected]> wrote:

>
> 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:
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:360073
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to