Intent
Provide a surrogate or placeholder for another object to control access to it.
How to
Proxy
maintains a reference that lets the proxy access the real subject
provides an interface identical to Subject's
Subject
defines the common interface for RealSubject and Proxy
RealSubject
defines the real object that the proxy represents
Known case
delay initialization
asyn call
remote proxy (RMI)
security validation
cache
UML
样例代码