Ervin Varga thinks this is interesting:

From

Note

I think, this refactoring would be better named as 'Unify Interfaces with Bridge'. The Bridge pattern is actually more fit for the purpose of putting various resources under the same umbrella interface, though. In the example, the XMLNode is the bridge toward TagNode and Element. Consequently, the ElementAdapter is adapting the Element to the common XMLNodge bridge. This is a fine example how Bridge and Adapter may be combined together.

Share this highlight

Get Instant Access Now

Unlock the rest of Refactoring to Patterns
and 30,000 other books and videos

By clicking this box, you confirm that you have read and agree to the terms and conditions of our Membership Agreement, and you understand that when your trial period ends, you will be required to provide billing information if you wish to continue using the service.