Dependency injection is a design technique where dependencies are injected into an object from the outside, instead of being created by the object itself on the inside. A dependency is an object that is needed by another object for that object to do its job. For instance, a BookingManager might need a DatabaseAccessObject in order to store a Booking in the database. Instead of creating the dependency - the DatabaseAccessObject, the BookingManager will have a DatabaseAccessObject injected into it from the outside. This dependency injection is typically performed by a dependency injection container.
While dependency injection may not be the silver bullet that solves all problems, dependency injection is still a nice tool in any developers tool belt. Check out the corresponding 10 texts in my dependency injection tutorial too, by clicking the link first in the description.
http://tutorials.jenkov.com/dependenc...
Nesta página do site você pode assistir ao vídeo on-line Dependency Injection duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Jakob Jenkov 20 Junho 2010, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 130,502 vezes e gostou 651 espectadores. Boa visualização!