java - is spring framework 3.0 type-safe -


in question asked, raised concern spring framework not type safe. true, or fixed, , can give example means exactly?

first of all, "type-safe" mean dependency injection framework. can think of can bean context specifying type, , not bean name. spring 3 allows this.

otherwise, type-safety means when can define dependencies type. , can in versions of spring.

another thing compile-time safety. spring pre-3.0 when had differentiate between 2 beans share same interface (or supertype) using string-based name. in spring 3.0 can use annotation-based qualifiers (using javax.inject.qualifier), compile-time safer well.

another thing mention use of generics. can have, example @inject list<myservice> in spring.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -