Dave Ross said the following on 4/5/2006 2:03 PM:
> without even looking at the code, this is probably because of finnicky
> auto-wiring code in the framework (we need to make sure it doesn't
> autowire beans unless told to, which I don't think is the case right
> now).
>   
Yeah, without me looking at it too - I believe CS tries to auto-wire
everything.  That is why I get a lot of BeanDefinition line 128 errors.
> the constructor-arg vs. property debate is an old one - and it's
> mostly stylistic. Yes, you can't have circular dependencies if you use
> constructor-args. Yes, using setter-methods leaves a situation where
> you could have an object created which doesn't have its dependencies
> satisfied. That's why we support both! My only real advice is that you
> should stick to one approach (within a given project/codebase).
>   
I agree that you should stick to one approach.  I don't want to sounds
like a "yes" man, but this is a good advice.  Typically, I use property
over constructor-arg. Personally, I like that my init()s are small
(usually just returning "this").  Dave is right that you may forget to
wire in a dependencies, but that's an easy fix and I'm assuming you'd
figure that out after 30 seconds of testing.
> yes I'm alive (sorta)
>   
Good to hear.  ;-)  BTW, CS was well accepted at cf.Objective().

-- 
Peter J. Farrell :: Maestro Publishing
Member Team Mach-II :: Member Team Fusion
http://blog.maestropublishing.com

Create boilerplate beans and transfer objects for ColdFusion!
Fire up a cup of Rooibos!
http://rooibos.maestropublishing.com/



Reply via email to