File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
proxy/src/main/java/com/iluwatar/proxy Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 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 */
819public class App {
You can’t perform that action at this time.
0 commit comments