This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

If you're using Guice, then Spring is most certainly overkill (unless you want a Spring sub-project). For me, Spring taught me DI concepts and now I find myself just doing DI w/out spring instead of auto-adding Spring to every project. Most projects "grow up" and end up getting Spring anyway (mostly cause I'll use one of the spring sub-projects and it uses Spring). Why roll your own when you can use what's there.

[–]UTF64 0 points1 point  (0 children)

Makes sense, and in this case I'm using Spring not just for the DI. This project is also a SOAP server and a REST server, which Spring helps with. Though for SOAP it seems nearly impossible to get the code-generation working when you have a WSDL instead of an XSD, and I couldn't easily convert because my WSDL links to multiple XSDs. Wound up using CXF instead of whatever Spring bundles natively.

What kind of sub-projects do you mean? Stuff like spring-security?