i really enjoy bob lee's blog and somehow or another got back to a post from a while ago about the various degrees of coupling with guice and spring. i'll briefly say that i don't think having to have a jar on the classpath for annotation is that big of a deal and i do think that providing your own version of Inject with source retention is a big hack. that's not really the point though. what bothers me about the whole thing is that colin sampaleanu, who's pretty obviously a spring proponent, gets in a snit about coupling at all. i don't think that i've ever seen code written with spring in mind that didn't use InitializingBean, Assert and *Aware everwhere. regardless of how various versions of java 1.5 handle annotations, you can't compile a thing if the spring interfaces you're implementing aren't there. now, it's certainly possible to write code that's completely spring-agnostic, but look forward to your configuration being even more of a pain than it already was. anyway, i just think that, with regards to coupling, spring is a glass house. it may not be perfect, but at least guice was a step in the right direction.
10.01.2007
coupling
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment