Enviar búsqueda
Cargar
Design Patterns - 02 Proxy and Bridge Pattern
•
7 recomendaciones
•
7,598 vistas
E
eprafulla
Seguir
This is my second presentation about design patterns. It covers proxy and bridge patterns.
Leer menos
Leer más
Diseño
Denunciar
Compartir
Denunciar
Compartir
1 de 18
Recomendados
Bridge Design Pattern
Bridge Design Pattern
Shahriar Hyder
Bridge Design Pattern
Bridge Design Pattern
sahilrk911
Adapter Design Pattern
Adapter Design Pattern
guy_davis
Adapter Design Pattern
Adapter Design Pattern
Adeel Riaz
PAC
PAC
Talgat Islamgozhayev
Design Patterns - 03 Composite and Flyweight Pattern
Design Patterns - 03 Composite and Flyweight Pattern
eprafulla
Chain of Responsibility Pattern
Chain of Responsibility Pattern
Hélio Costa e Silva
PAC Learning
PAC Learning
Sanghyuk Chun
Recomendados
Bridge Design Pattern
Bridge Design Pattern
Shahriar Hyder
Bridge Design Pattern
Bridge Design Pattern
sahilrk911
Adapter Design Pattern
Adapter Design Pattern
guy_davis
Adapter Design Pattern
Adapter Design Pattern
Adeel Riaz
PAC
PAC
Talgat Islamgozhayev
Design Patterns - 03 Composite and Flyweight Pattern
Design Patterns - 03 Composite and Flyweight Pattern
eprafulla
Chain of Responsibility Pattern
Chain of Responsibility Pattern
Hélio Costa e Silva
PAC Learning
PAC Learning
Sanghyuk Chun
Bridge pattern
Bridge pattern
Shakil Ahmed
Bridge Pattern Derek Weeks
Bridge Pattern Derek Weeks
melbournepatterns
Bridge Pattern
Bridge Pattern
Somenath Mukhopadhyay
20120420 - Design pattern bridge
20120420 - Design pattern bridge
LearningTech
Design Patterns - 01 Introduction and Decorator Pattern
Design Patterns - 01 Introduction and Decorator Pattern
eprafulla
Chain of responsibility
Chain of responsibility
Shakil Ahmed
Command Pattern
Command Pattern
Geoff Burns
Design Patterns - 04 Adapter and Facade Pattern
Design Patterns - 04 Adapter and Facade Pattern
eprafulla
Command pattern
Command pattern
Shakil Ahmed
Chain of Responsibility Pattern
Chain of Responsibility Pattern
Hüseyin Ergin
Architectural patterns part 1
Architectural patterns part 1
assinha
Design pattern (Abstract Factory & Singleton)
Design pattern (Abstract Factory & Singleton)
paramisoft
Command Design Pattern
Command Design Pattern
Shahriar Hyder
Descriptive statistics
Descriptive statistics
Rajesh Gunesh
PPT (2)
PPT (2)
KITE www.kitecolleges.com
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Svetlin Nakov
Implementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
ProdigyView
Security and Integrity of Data
Security and Integrity of Data
Adeel Riaz
infant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptx
suhanimunjal27
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
amitlee9823
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
Delhi Call girls
Más contenido relacionado
Destacado
Bridge pattern
Bridge pattern
Shakil Ahmed
Bridge Pattern Derek Weeks
Bridge Pattern Derek Weeks
melbournepatterns
Bridge Pattern
Bridge Pattern
Somenath Mukhopadhyay
20120420 - Design pattern bridge
20120420 - Design pattern bridge
LearningTech
Design Patterns - 01 Introduction and Decorator Pattern
Design Patterns - 01 Introduction and Decorator Pattern
eprafulla
Chain of responsibility
Chain of responsibility
Shakil Ahmed
Command Pattern
Command Pattern
Geoff Burns
Design Patterns - 04 Adapter and Facade Pattern
Design Patterns - 04 Adapter and Facade Pattern
eprafulla
Command pattern
Command pattern
Shakil Ahmed
Chain of Responsibility Pattern
Chain of Responsibility Pattern
Hüseyin Ergin
Architectural patterns part 1
Architectural patterns part 1
assinha
Design pattern (Abstract Factory & Singleton)
Design pattern (Abstract Factory & Singleton)
paramisoft
Command Design Pattern
Command Design Pattern
Shahriar Hyder
Descriptive statistics
Descriptive statistics
Rajesh Gunesh
PPT (2)
PPT (2)
KITE www.kitecolleges.com
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Svetlin Nakov
Implementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
ProdigyView
Security and Integrity of Data
Security and Integrity of Data
Adeel Riaz
Destacado
(18)
Bridge pattern
Bridge pattern
Bridge Pattern Derek Weeks
Bridge Pattern Derek Weeks
Bridge Pattern
Bridge Pattern
20120420 - Design pattern bridge
20120420 - Design pattern bridge
Design Patterns - 01 Introduction and Decorator Pattern
Design Patterns - 01 Introduction and Decorator Pattern
Chain of responsibility
Chain of responsibility
Command Pattern
Command Pattern
Design Patterns - 04 Adapter and Facade Pattern
Design Patterns - 04 Adapter and Facade Pattern
Command pattern
Command pattern
Chain of Responsibility Pattern
Chain of Responsibility Pattern
Architectural patterns part 1
Architectural patterns part 1
Design pattern (Abstract Factory & Singleton)
Design pattern (Abstract Factory & Singleton)
Command Design Pattern
Command Design Pattern
Descriptive statistics
Descriptive statistics
PPT (2)
PPT (2)
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Implementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
Security and Integrity of Data
Security and Integrity of Data
Último
infant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptx
suhanimunjal27
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
amitlee9823
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
Delhi Call girls
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
RitikaRoy32
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
kumaririma588
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptx
bingyichin04
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
home
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
sonalitrivedi431
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Case Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, Pune
LukeKholes
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
amanda2495
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Delhi Call girls
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
University of Wisconsin-Milwaukee
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
instagramfab782445
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
amitlee9823
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
Pooja Nehwal
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
Delhi Call girls
Último
(20)
infant assessment fdbbdbdddinal ppt.pptx
infant assessment fdbbdbdddinal ppt.pptx
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptx
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
Case Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, Pune
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
B. Smith. (Architectural Portfolio.).pdf
B. Smith. (Architectural Portfolio.).pdf
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Nagavara ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Basavanagudi Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Th...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Vasundhra (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
Design Patterns - 02 Proxy and Bridge Pattern
1.
02 Proxy and
Bridge Pattern Design Patterns © Prafulla Paraskar 2010
2.
Proxy Structural Design
Pattern
3.
Definition A proxy,
in its most general form, is a class functioning as an interface to something else. The proxy could interface to anything: a network connection, a large object in memory, a file, or some other resource that is expensive or impossible to duplicate. (wikipedia) © Prafulla Paraskar 2010
4.
Proxy Pattern –
Explained (1/2) Resources Proxy Client © Prafulla Paraskar 2010
5.
Proxy Pattern –
Explained (2/2) Provides a surrogate or placeholder for another object to control access to it. A mechanism to enforce authentication and authorization. Creates expensive objects only when required. Allows optimization techniques such as caching to be implemented. Release expensive resources soon as they are no longer required (smart pointers). © Prafulla Paraskar 2010
6.
Proxy Pattern –
UML Diagram © Prafulla Paraskar 2010
7.
Proxy Pattern –
Real World Samples Image/document editors. Reference counting pointer (smart pointer). Friend lists on social networking sites. COM Components at the lower level. CORBA proxy/stub objects. .NET web services proxy classes. © Prafulla Paraskar 2010
8.
Proxy Pattern –
Guidelines (1/2) You have objects that: Are expensive to create. Need access control. Access remote sites. Need to perform some action whenever they are accessed. © Prafulla Paraskar 2010
9.
Proxy Pattern –
Guidelines (2/2) You want to: Create objects only when their operations are requested. Perform checks or housekeeping on objects whenever accessed. Have a local object that will refer to a remote object. Implement access rights on objects as their operations are requested. © Prafulla Paraskar 2010
10.
Bridge Structural Design
Pattern
11.
Definition The bridge
pattern is a design pattern used in software engineering which is meant to "decouple an abstraction from its implementation so that the two can vary independently“.(wikipedia) © Prafulla Paraskar 2010
12.
Bridge Pattern –
Explained (1/2) © Prafulla Paraskar 2010
13.
Bridge Pattern –
Explained (2/2) Decouples an abstraction from implementation. Specially useful in the situations where a new version of component library needs to replace older one with backward compatibility. Client specifies which implementation to use (sometimes implicitly). Unlike Adapter pattern, client knows about the implementation in use all the time. © Prafulla Paraskar 2010
14.
Bridge Pattern –
UML Diagram © Prafulla Paraskar 2010
15.
BridgePattern – Real
World Samples Electric switch (abstraction) / Appliances (implementations). Different types of displays (implementation) providing one essential set of capabilities defined in the a bridge interface (abstraction). Client calls the abstraction to display something and the abstraction deciding the display based on the capabilities. © Prafulla Paraskar 2010
16.
Bridge Pattern– Guidelines
(1/2) You can: Identify that there are operations that do not always need to be implemented in the same way. © Prafulla Paraskar 2010
17.
Bridge Pattern– Guidelines
(2/2) You want to: Completely hide implementations from client. Avoid binding an implementation to an abstraction directly. Change an implementation without even recompiling an abstraction. Combine different parts of a system at runtime. © Prafulla Paraskar 2010
18.
Thank you! http://geekswithblogs.net/technomad
Presentation by Prafulla Paraskar eprafulla@gmail.com © 2010 Prafulla Paraskar
Notas del editor
Decouple means to have things behave independently from each other or at least explicitly state what the relationship is.Abstraction is how different things are related to each other conecptually.