dependency injection - Differences between 'Bridge Design Patterns' and 'Inversion of Control with an IOC container' -
about design patterns, perception 'inversion of control dependency injection ' , 'bridge design pattern' same thing, dependency injection can , uses ioc container.
which differences between 'inversion of control dependency injection ' , 'bridge design pattern'?
a lot has been written here on stackoverflow dependency injection (just visit dependency-injection tag info page references), it's not useful repeat here.
the bridge pattern pattern, means can use design part of application, can use abstract factory, decorator, adapter, facade, name it. inversion of control on other hand can seem overall theme can use make complete application more loosely coupled. it's not should use 1 on other.
if @ wikipedia article bridge pattern see java example of bridge pattern uses (constructor) dependency injection inject drawingapi
abstraction shape
, circleshape
types.
Comments
Post a Comment