Download presentation
Presentation is loading. Please wait.
Published byAugustus Reynolds Modified over 9 years ago
1
The PROXY Design Pattern Oleksandra Sopova Feb, 2014
4
Remote method invocation
8
Back to our GumballMachine remote proxy
20
In our dating service we want : - make sure that a customer can set his own information while preventing others from altering it -allow just the opposite with the HotOrNot ratings: we want the other customers to be able to set the rating, but not that particular customer
21
Big Picture: creating a dynamic Proxy for the PersonBean Step one: creating Invocation Handlers
24
The Proxy Zoo
25
Summary The Proxy pattern introduces a level of indirection when accessing an object. A remote proxy can hide the fact that an object resides in a different address Space. A virtual proxy can perform optimizations such as creating an object on Demand. Both protection proxies and smart references allow additional housekeeping tasks when an object is accessed.
26
References Head First Design Patterns by Eric Freeman, Elisabeth Robson, Bert Bates, Kathy Sierra Design Patterns: Elements of Reusable Object- Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides Design Patterns by Andriy Buday RMI (Remote Method Invocation) http://habrahabr.ru/post/74639/
27
THANK YOU FOR YOUR ATTENTION
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.