views:

117

answers:

0

Hi All,
Can anyone provide me a sample example of two-way adapter design pattern - and its practical use scenario. My understanding (after reading GOF) is
a. This can happen only in case of class adapters (as opposed to object adapters).

An adapted object no longer conforms to the Adaptee interface, so it can't be used as is wherever an Adaptee object can.

b. This is needed when the adaptee needs to invoke any interface of the target.

Only doubt is - why would the adaptee need to invoke any interface of the target?
Any example would be helpful.

Thanks for your input in advance.