Dependency Injection

Publicado el: 20 junio 2010
en el canal de: Jakob Jenkov
130,502
651

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...


En esta página del sitio puede ver el video en línea Dependency Injection de Duración hora minuto segunda en buena calidad , que subió el usuario Jakob Jenkov 20 junio 2010, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 130,502 veces y le gustó 651 a los espectadores. Disfruta viendo!