• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Stoop 437-proxy

on

  • 454 views

 

Statistics

Views

Total Views
454
Views on SlideShare
454
Embed Views
0

Actions

Likes
0
Downloads
8
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Stoop 437-proxy Stoop 437-proxy Presentation Transcript

    • Proxy
    •  
    • Proxy
      • Category
        • Structural
      • Intent
        • Provide a surrogate or placeholder for another object to control access to it
      • Also known as
        • Surrogate
    • Proxy Pattern Motivation
    • Proxy Applicability
        • A remote proxy provides a local representative for an object in a different address space
        • A virtual proxy creates expensive objects on demand
        • A protection proxy controls access to the original object, in order to enforce access rights
        • A smart reference is a replacement for a bare pointer that performs additional actions when an object is accessed
    • Proxy Pattern Structure
    • Proxy Pattern Participants
      • Proxy (ImageProxy)
        • maintains a reference that lets the proxy access the real subject
        • provides an interface identical to Subject’s so that a proxy can be substituted for the real subject
        • controls access to the real subject and may be responsible for creating and deleting it
    • Proxy Participants (continued)
      • Subject (Graphic)
        • defines the common interface for RealSubject and Proxy so that a Proxy can be used anywhere a RealSubject is expected
      • RealSubject (Image)
        • defines the real object that the proxy represents
    • Proxy Consequences
      • Consequences
        • A remote proxy can hide the fact that an object resides in a different address space
        • A virtual proxy can perform optimizations such as creating an object on demand
        • Both protection proxies and smart references allow additional housekeeping tasks when an object is accessed