inject beans into handlers using coldfspring, not autowire

Hi,
Is it possible with coldbox to inject beans into handlers using the
coldspring.xml file?
So i dont want to use autowiring, i dont like the fact that handlers
have information about which beans they need, even though its only by
bean name.

greets,
klaas

Are you saying to define handlers via cold spring?

Luis Majano
President
Ortus Solutions, Corp

yes..
i see that that might be difficult..
I stumble on it often that i want to do this, i think its holding back
coldbox's extensibility.
What would you say about making a parent ioc container in which
coldbox defines all its beans.. so i can hook it up to my coldspring

I made something for reactor that does something similar, i let
reactorfactory make all the objects, but i made a extension of this
factory, that first checks the ioc container if a reactor bean exists
in the ioc container.
I define reactor objects in coldspring by using a factory method on
the reactorfactory.. so the ioc calls back to the reactorfactory to
get the object, but i can then inject stuff into it.
It basically loops through the ioc container..

This is easy to do and is supported by ColdBox already.

Try using this instead

    //IOC Integration
    ioc = {
      framework = "lightwire",
      reload = true,
      objectCaching = false,
      definitionFile = "config/coldspring.xml.cfm",
      parentFactory = {
        framework = "coldspring",
        definitionFile = "config/parent.xml.cfm"
      }
    };

Regards,
Andrew Scott
http://www.andyscott.id.au/

From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com] On
Behalf Of Klaas-Jan Winkel
Sent: Friday, 15 April 2011 9:29 PM
To: coldbox@googlegroups.com
Subject: Re: [coldbox:9508] inject beans into handlers using coldfspring,

not

autowire

yes..
i see that that might be difficult..
I stumble on it often that i want to do this, i think its holding back

coldbox's

extensibility.
What would you say about making a parent ioc container in which coldbox
defines all its beans.. so i can hook it up to my coldspring

I made something for reactor that does something similar, i let

reactorfactory

make all the objects, but i made a extension of this factory, that first

checks

the ioc container if a reactor bean exists in the ioc container.
I define reactor objects in coldspring by using a factory method on the
reactorfactory.. so the ioc calls back to the reactorfactory to get the

object,

Yes, a parent ioc maybe not so difficult, but a parent ioc with all
the instances of objects that are internal to coldbox is a different
story..