Timeline for Making classes available to others
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 27, 2011 at 13:54 | comment | added | smack0007 | I honestly prefer constructor injection. It makes it clear what dependencies a given object has. With a service locator, it can be hard to know which components depend on which other components. | |
| May 27, 2011 at 11:18 | comment | added | Jonathan Connell | Good point ^^. I do much prefer the Service Locator, only I can't help but think to myself that it's kindof like making your services globals or using Properties to access them, which is horrible :). | |
| May 27, 2011 at 11:10 | history | answered | smack0007 | CC BY-SA 3.0 |