GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JavaScript-Design-Patterns/GoF/classic/Structural/Proxy at master · Badacadabra/JavaScript-Design-Patterns

Expand file tree

/

Proxy

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

Proxy

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
CoffeeScript
CoffeeScript
 
 
ECMAScript
ECMAScript
 
 
TypeScript
TypeScript
 
 
Proxy.dia
Proxy.dia
 
 
Proxy.png
Proxy.png
 
 
README.md
README.md
 
 

README.md

Outline

Synopsis

I need some cash, so I have to find an ATM (Automated Teller Machine).

Problem

Money withdrawal is under control. Everyone has a personal bank account which is only accessible with a specific credit card and a related code.

For this reason, we cannot interact directly with the "real" object (our bank account). We must interact with another object that will be responsible for the communication with the real object.

Solution

We could consider an ATM as a proxy whose aim is to verify access to a bank account. Here the Proxy design pattern requires:

  • An abstract representation of a financial entity (abstract class or interface)
  • A concrete bank account which allows some operations
  • A proxy (ATM) which secures these operations and delegates when necessary

Proxy (classic)

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.