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...
In questa pagina del sito puoi guardare il video online Dependency Injection della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Jakob Jenkov 20 giugno 2010, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 130,502 volte e gli è piaciuto 651 spettatori. Buona visione!