Home  /  Questions  /  Question

100   96.6
Jun 06, 2010

Difference between Proxy and Adaptor

What is the difference between Proxy and Adaptor pattern?

1,364   100.0
Jul 31, 2010
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...
Those who voted negative should have atleast have the courtesy to comment and explain the reason for the voting. This will help to fine tune the response which will benefit a broader audience. --- Rajesh Pillai  Jan 10, 2011
It helped me. Thanks. --- Andrew Gordon  Jan 14, 2011
Proxy server, a computer network service that allows clients to make indirect network connections to other network services That was a head of my dissertation )))) --- Lucyl Kal  Jun 15, 2011