Changes

Jump to: navigation, search

Proxy

145 bytes added, 22:11, 16 January 2007
Code Samples
===Code Samples===
These code samples will demonstrate real world uses of the Proxy Design Pattern. Each code sample is from a real working software system.
<br />
====Virtual Proxy - Python====
This Sample code is from a Python Remote Method Invocation program. It is copyrighted by <b>Irmen de Jong</b> and licensed by MIT. The code in this example is located in the <i>Clients.py</i> file of the <b>Pyro</b> system. It allows a user to write a module containing a class to be accessed remotely. The class the user created is registered by the Pyro Name Server. The client creates proxies for the remote objects to be invoked when a call is made to the object. The Virtual Proxy pattern can be seen throughout this code file as highlighted:
1
edit

Navigation menu