Skip to content

Commit 3263788

Browse files
committed
Update README.md
1 parent 2bf17c1 commit 3263788

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@
118118
##Proxy
119119
**Intent:** Provide a surrogate or placeholder for another object to control access to it.
120120

121+
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/proxy/etc/proxy.jpg "Proxy")
122+
123+
**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
124+
* a remote proxy provides a local representative for an object in a different address space.
125+
* a virtual proxy creates expensive objects on demand.
126+
* a protection proxy controls access to the original object. Protection proxies are useful when objects should have different access rights.
127+
121128
##Chain of responsibility
122129
**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.
123130

0 commit comments

Comments
 (0)