On 1/12/06, Sean Corfield <[EMAIL PROTECTED]> wrote: > ColdSpring wires the beans it creates but it can't wire the "parent" > objects because it doesn't know about them. >
This eventually produced an "ah-ha!" moment.. see below... > Does that answer your question? Thanks. Yes, that does. I finally broke down earlier this evening and wrote a very, very simple skeleton app to test what I was doing to answer Kurt's questions a little better (thanks for the response Kurt) and figured-out what I was doing wrong. Essentially I was instantiating Coldspring /inside/ of the main Factory which I wanted autowired rather than creating that Factory as a bean inside of ColdSpring as well with the others and grabbing a reference of it later via getBean(). I somehow managed to completely overlook the fact that CS would have no way of autowiring something it didn't have an instance of. :) This code is not at all the "right way" to do things since I just needed something quick and dirty to test with (no cache management for instance), etc... but if anyone would like some very simple sample code: http://devnulled.com/media/code/SimpleColdSpringApp.zip I certainly don't mind cleaning it up a lot / getting criticism about it so that it can be used later or even packaged as a simple example with ColdSpring itself if there is any need/use for it. Thanks, - Brandon -- http://devnulled.com
