News for hackers. Stuff that matters.
Re:Spring Dependency Injection Styles – Why I love Java base... by zupatol on Monday July 23, 2012 @03:16PM (#4282587)
> Instead of writing a giant set of XML files to create a giant set of POJOs and wire them together, you write a similar set of Java classes

This is how you would do it without spring. I suppose there must be an advantage of using @Configuration and @Bean instead of plain java, but what is it?

Re:Spring Dependency Injection Styles – Why I love Java base... by dimasg on Monday July 23, 2012 @04:39PM (#4282970)
They give you automatic proxied/intercepted objects for things like Transaction management, asynchronous execution, general AOP, etc. If you're not using any of that, there's probably little to no advantage to using pure Java DI. But those things are really nice to have.