From 3263788bc90c361d506312608ca87cf84e1eddfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Sun, 24 Aug 2014 20:13:21 +0300 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 24d470a93..ef3f54904 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,13 @@ ##Proxy **Intent:** Provide a surrogate or placeholder for another object to control access to it. +![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/proxy/etc/proxy.jpg "Proxy") + +**Applicability:** Proxy is applicable whenever there is a need for a more versatile or sophisticated reference to an object than a simple pointer. here are several common situations in which the Proxy pattern is applicable +* a remote proxy provides a local representative for an object in a different address space. +* a virtual proxy creates expensive objects on demand. +* a protection proxy controls access to the original object. Protection proxies are useful when objects should have different access rights. + ##Chain of responsibility **Intent:** Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.