Dofactory.com
Dofactory.com
 Back to list
Views:   21K
Replies:  1
Archived

Difference between Proxy and Adaptor


What is the difference between Proxy and Adaptor pattern?
Saurabh Saxena, Jun 06, 2010
Reply 1
Adapter is used to adapt to incompatible interfaces.  It's more directed from the client (those who consume the object) perspective.  A  client expects an interface to be of particular type and adapter plays a role in filling that gap.

It's more from making it easier for the client to adapt to other third party libraries within there own by adapting to it.


Proxy on the other hand represents a standin object for the real object.  This is required when the real object is complex to create, is not available, or for authentication purpose.   For e.g. web service proxy, proxy authentication server etc.

Proxy can be categorized into
  • Virtual Proxy
  • Remote Proxy
  • Protection Proxy
Hope this helps...
Rajesh Pillai, Jul 31, 2010
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.