-
The
Proxy
(
download
) example illustrates implementation of the virtual proxy pattern.
-
The ProxyImage class delays the expensive operation of loading the image file from disk until the operation is actually requested by the client.
-
If the file is never needed, the expensive loading step is completely eliminated.
|
|