Sorry, Rod, Keith, Rick et al. I'll even go so far as to say that I no longer believe Spring does more harm than good. Spring's Java API and implementation may leave a lot to be desired (Effective Java should be required reading for Spring committers), but in reality most users rarely see either. Spring users see two things:
- XML configuration
- Their own clean, injected, testable classes
<bean name="conversation" class="ConversationScope" /> <bean name="foo" scope="conversation" ... />In the long term, we need something closer to my ideal factory API in the J2SE so we can strongly type JNDI, the Servlet API, etc. Spring is not that API, but it certainly will do for application development in the mean time.