|
|
|
|
|
by galuvian
4553 days ago
|
|
Auto wiring is great for test code. Most of you need to know about the test is contained in the testing class. But I don't like using auto wired in the main code because it means I am required to use that wiring for every use. I find that we want to use classes in a few different ways, and keeping the dependency definitions and configuration values in the XML decouples it from the code and increases both reusability as well as exposing the XML configurations after deployment so that a recompile isn't required in the field. |
|