Organizational Research By

Surprising Reserch Topic

What is the difference between constructor injection and setter injection?


No.Constructor InjectionSetter Injection
1)No Partial InjectionPartial Injection
2)Desn't override the setter propertyOverrides the constructor property if both are defined.
3)Creates new instance if any modification occursDoesn't create new instance if you change the property value
4)Better for too many propertiesBetter for few properties.
asked Jul 14, 2015 in spring framework by rajesh
0 votes
60 views



Related Hot Questions



Government Jobs Opening


...