In this technique the component to be repaired is encapsulated (or wrapped) into an alternative abstraction. Clients access the wrapped component services only through an alternative interface provided by the wrapper.
A bridge translates some requires assumptions one component into some provides assumptions of another
Mediators exhibit properties of both bridges and wrappers. The major distinction between bridges and mediators, however, is that mediators incorporate a planning function that in effect results in run-time determination of the translation.
Asked In: Many Interviews |