Proxy pattern: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
rimuovo copyviol da http://userpages.umbc.edu/~tarr/dp/lectures/Proxy.pdf
 
cont trad
Riga 15:
==Esempi==
===Virtual proxy (in Java)===
 
<!--
TheIl followingseguente esempio [[Java (programminglinguaggio languagedi programmazione)|Java]] exampleillustra illustratesil thepattern "virtual proxy" pattern. The programL's output isdel programma è:
Loading HiRes_10MB_Photo1
Displaying HiRes_10MB_Photo1
Riga 23:
Displaying HiRes_10MB_Photo2
 
<!--The <code>ProxyImage</code> class is used to delay the expensive operation of loading a file from disk until the result of that operation is actually needed. If the file is never needed, then the expensive load has been totally eliminated. -->
<source lang="java">
import java.util.*;