Skip to content

Commit

Permalink
Merge branch 'proxy-presentation'
Browse files Browse the repository at this point in the history
  • Loading branch information
iluwatar committed Dec 26, 2016
2 parents 5e57cd0 + 9cf1918 commit 512a5c0
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions proxy/etc/presentation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta charset="utf-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);

body { font-family: 'Droid Serif'; }
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
}
.remark-code, .remark-inline-code { font-family: 'Ubuntu Mono'; }
</style>
</head>
<body>
<textarea id="source">

class: center, middle

# Proxy

---

# Also known as

* Surrogate

---

# Intent

* Provide a surrogate or placeholder for another object to control access to it.

---

# Applicability

* Protection proxy limits access to the real subject.
* Virtual proxies are used when an object is expensive to instantiate.
* Caching proxies are used to cache expensive calls to the real subject.
* Remote proxies are used in distributed object communication.
* Smart proxies are used to implement reference counting and log calls to the object.

---

# Diagram

.center[![Alt text](proxy-concept.png)]

---

# Tutorials

* Blog http://java-design-patterns.com/blog/controlling-access-with-proxy-pattern/
* Source code http://java-design-patterns.com/patterns/proxy/

</textarea>
<script src="https://gnab.github.io/remark/downloads/remark-latest.min.js">
</script>
<script>
var slideshow = remark.create();
</script>
</body>
</html>

0 comments on commit 512a5c0

Please sign in to comment.