Joe Harry wrote:
Padmarag Lokhande wrote:The new Annotation based configuration should be interesting to understand.
And tie your source code to Spring.
Nope...doesn't have to tie your code to Spring.
If you use @Component and @Autowired to automatically configure your beans, then yes...you've tied your code to Spring. (Which, BTW, I don't think is that horrible of a thing...but nonetheless.)
But instead of using @Component and @Autowired, you choose to use @Named and @Inject from JSR-330, then your beans can be wired up in Spring, Guice, or (I think) Picocontainer.