Re: what about adding spring ?
Peter Ledbrook <[email protected]> Tue, 13 Jan 2009 08:05:14 +0000
| Newsgroups | gmane.comp.java.scarab.devel |
|---|---|
| Message-ID | <[email protected]> |
> Please tell me your opinion. Would it be a clever move ? Or am i introducing > just another layer of complexity ? I have a high regard for Spring, although I should probably disclose that I'm currently contracting for SpringSource. Unlike Jon, I have found that projects with Spring tend to be easier to understand and maintain than ones without any IoC framework at all, but there's nothing stopping you from writing convoluted inter-dependencies. There is also good documentation for it and a big user base. The biggest downside is the XML bean descriptor, but you can now use annotations. Remember though, it's not just an IoC framework that you get with Spring: there's a bunch of other stuff too. Just check out the reference guide for more info. In particular, you might be interested in Spring MVC (like Struts 2) which can happily work with Velocity templates. It's AOP support can be quite handy too, particular for transactions. As to your final question, if you're replacing one IoC container (yaafi) with another (Spring), that could hardly be seen as an extra layer of complexity :) In the end, I think you need to find something that you're going to be productive with, otherwise development will be slow. Regards, Peter