|
|||||||||
|
Submit Links |
Latest Links
| Login
(want to submit links for DLinks? send a mail to krishnas@javabeat.net)
Using patterns to change dependency injection stylessubmited by krishnas on Mon Jul 30th, 2007 The two most common forms of dependency injection are constructor injection and setter injection. They’ve got pros and cons of course, and both have their place. Setter injection is simple, allows you choose which parts of the object to inject, can make setting up bidirectional relationships easier, but has the downside that it’s easier to create an object in a partially constructed state.Topic: java |
|||||||||
|
|||||||||