Skip to content

Commit c3a827b

Browse files
committed
Improved Proxy Javadoc
1 parent 9a4f83e commit c3a827b

File tree

1 file changed

+12
-1
lines changed
  • proxy/src/main/java/com/iluwatar/proxy

1 file changed

+12
-1
lines changed

proxy/src/main/java/com/iluwatar/proxy/App.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22

33
/**
44
*
5-
* Proxy ({@link WizardTowerProxy}) controls access to the actual object ({@link WizardTower}).
5+
* A proxy, in its most general form, is a class functioning as an interface to something else.
6+
* The proxy could interface to anything: a network connection, a large object in memory, a file,
7+
* or some other resource that is expensive or impossible to duplicate. In short, a proxy is a
8+
* wrapper or agent object that is being called by the client to access the real serving object
9+
* behind the scenes.
10+
* <p>
11+
* The Proxy design pattern allows you to provide an interface to other objects by creating a
12+
* wrapper class as the proxy. The wrapper class, which is the proxy, can add additional
13+
* functionality to the object of interest without changing the object's code.
14+
* <p>
15+
* In this example the proxy ({@link WizardTowerProxy}) controls access to the actual object
16+
* ({@link WizardTower}).
617
*
718
*/
819
public class App {

0 commit comments

Comments
 (0)