SJSU CMPE 196G - More on Structural Patterns (37 pages)

Previewing pages 1, 2, 17, 18, 19, 36, 37 of 37 page document View the full content.
View Full Document

More on Structural Patterns



Previewing pages 1, 2, 17, 18, 19, 36, 37 of actual document.

View the full content.
View Full Document
View Full Document

More on Structural Patterns

143 views

Lecture Notes


Pages:
37
School:
San Jose State University
Course:
Cmpe 196g -

Unformatted text preview:

Lesson Lesson 7 7 More More on on Structural Structural Patterns Patterns ObjectOriented Behavio ral Paradigm Shift Inc Software Factory Creation al Design PS95 96 MEF L14 1 Structur al Copyright 1995 2004 Active Frameworks Inc All Rights Reserved V2 0 Pattern s Dr M E Fayad More on Structural Patterns Page L7 1 Lesson Lesson Objectives Objectives Objectives Present the following Patterns Proxy Composite Discuss in detail the structural patterns PS95 96 MEF L14 2 Copyright 1995 2004 Active Frameworks Inc All Rights Reserved V2 0 Dr M E Fayad More on Structural Patterns Page L7 2 Structural Patterns Proxy Pattern Topics Proxy Definition Structure Document Editor Example Proxy Properties Applicability Consequences ErrorProxy Example PS95 96 MEF L14 3 Copyright 1995 2004 Active Frameworks Inc All Rights Reserved V2 0 Dr M E Fayad More on Structural Patterns Page L7 3 Proxy Pattern Definition A Proxy is a surrogate or a placeholder for another object to control access to the real objects The Proxy pattern is applicable when there is a need for sophistication in a reference to an object There is added function between a client and the intended subject object Sometimes the Proxy pattern is known as an Ambassador pattern when dealing with distributed objects PS95 96 MEF L14 4 Copyright 1995 2004 Active Frameworks Inc All Rights Reserved V2 0 Dr M E Fayad More on Structural Patterns Page L7 4 Proxy Pattern Structure ClientClass Uses Subject Request RealSubject real Proxy Subject Request Request aClientObject subject Instance Diagram aSubjectProxy realSubject PS95 96 MEF L14 5 Copyright 1995 2004 Active Frameworks Inc All Rights Reserved V2 0 realSubject Request aRealSubject Dr M E Fayad More on Structural Patterns Page L7 5 Proxy Pattern Structure 2 The Subject defines the common interface for the RealSubject and Proxy The Proxy can be used any place a RealSubject is expected The RealSubject defines the real object that the Proxy represents PS95 96 MEF L14 6 Copyright 1995



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view More on Structural Patterns and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view More on Structural Patterns and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?