Explicit Wiring |
Auto Wiring |
1. Explicit Wiring means hard-coding the dependencies in the XML. |
1. Not hard-coding in the XML file rather Container to detect and inject Dependencies.
|
2. Mainly it can be done in two ways
a. Constructor b. Setter injection |
2. It can be done in four ways
a. byName b. byType c. constructor d. autodetect |
3. It requires writing more content in the XML which ultimately makes XML little complex.
|
3. It doesn't require much writing rather need just any of the four value to the autowire attribute.
|
Saturday, 5 April 2014
Difference between Explicit and Auto Wiring in the Spring
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment