|
From: Seth L. <set...@gm...> - 2005-06-16 18:04:34
|
On 6/16/05, Heino Magnus <mag...@lm...> wrote: >=20 > http://opensource.atlassian.com/projects/spring/browse/SPR-1047 >=20 > Good/bad idea? Has someone else done a better implementation thats alread= y > integrated that I have missed? I think it's a great idea. Of course, I'm biased, as I also wrote an implementation of this concept. http://opensource.atlassian.com/projects/spring/browse/SPR-774 Two major differences between 774 and 1047: My impl uses the attributes facade, so that pre 1.5 installs can use this functionality. It also can handle primitives. That is, it can check if the value of a primitive was not set in the bean definition. My favorite part about this idea is it gets rid of all that code inside afterPropertiesSet(), where many beans check if their dependencies are set. Each bean shouldn't have to do that, IMHO. Seth |