Proxy pattern: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
FrescoBot (discussione | contributi)
m Bot: conversione sequenze unicode e di url encoding nei wikilink
elimino T (nessuna traduzione da oltre 6 mesi) elimino testo nascosto in altra lingua
Riga 1:
{{T|lingua=inglese|argomento=informatica|data=giugno 2008}}
 
 
In [[informatica]], il '''proxy pattern''' è un [[design pattern]].
 
Line 25 ⟶ 22:
La [[Classe_(informatica)|classe]] <code>ProxyImage</code> è utilizzata per ritardare l'operazione (onerosa) di caricamento di un [[file]] dal disco finché il risultato di questa operazione non è effettivamente necessario. Se il file non è mai necessario, il caricamento risulta essere completamente eliminato.
 
<!--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.*;
Line 82 ⟶ 78:
In questo esempio '''thePassword''' è la password corretta
 
<!--
In this [[C Sharp (programming language)|C#]] example, the <code>RealClient</code> stores an account number. Only users who know a valid password can access this account number. The <code>RealClient</code> is protected by a <code>ProtectionProxy</code> which knows the password. If a user wants to get an account number, first the proxy asks the user to authenticate; only if the user entered a correct password does the proxy invoke the <code>RealClient</code> to get an account number for the user.
 
In this example, '''thePassword''' is the correct password. -->
<source lang="csharp">
using System;