Soumettre la recherche
Mettre en ligne
Adapter Pattern
•
Télécharger en tant que PPTX, PDF
•
0 j'aime
•
502 vues
Ted Liang
Suivre
Adapter Pattern
Lire moins
Lire la suite
Logiciels
Business
Technologie
Signaler
Partager
Signaler
Partager
1 sur 13
Télécharger maintenant
Recommandé
A look into the state design pattern in C#.
The State Design Pattern
The State Design Pattern
Josh Candish
Dr. Govindappa Venkataswamy or Dr. V as he was affectionately called brought about a revolution in eye care in the southern state of Tamil Nadu in India. His achievements are spectacular enough for Harvard University to have done a case study on him for its graduate students.
Aravind eye hospital
Aravind eye hospital
Ananya Das
1. Adapter PatternShahriar Iqbal Chowdhury & Monjurul Habib Code Name: Remington http://www.facebook.com/groups/netter/ 2. What is Adapter• A device for connecting pieces of equipment that cannot be connected directly• An adapter allows classes to work together that normally could not because of incompatible interfaces 3. Missing something?? 4. How does it work? 5. When we need?• Convert the interface of a class into another interface that client expects.• Allow classes to work together that couldn’t because of incompatible interfaces.• Future clients can be satisfied through the creation of additional concrete Adapter.• Adapter is meant to change the interface of an existing object.• A way to achieve OCP(Open/Closed Principle) 6. Client Component 7. Client AdapterComponent/ Adaptee 8. Adapters in the real world 9. UML Structure 10. Way to use (ref. DoFactory) 11. Client 12. Adapter 13. Adaptee 14. Another shocking example 15. Adapter @.NET Framework• From .NET-based code you can easily call legacy COM objects and vice versa.• Behind the scenes, Visual Studio® .NET create a Runtime Callable Wrapper (RCW) class. Inside the RCW, .NET specific format is converted into a format that the COM component expects and vise versa.• Data Adapters adapts data from different source (SQL Server, Oracle, ODBC, OLE DB) to dataset.• Different Data Adapter classes are usedSqlDataAdapterOdbcDataAdapterOleDbDataAdapter 16. Real World Scenario’s• Most of the applications using third party libraries use adapters as a middle layer between the application and the 3rd party library.• Memory card reader software.
Adapter Pattern
Adapter Pattern
Monjurul Habib
About Visitor Design Pattern
Visitor design patterns
Visitor design patterns
Nishant Mevawala
A short course in the State design pattern using cells, tadpoles and frogs as examples. Code examples are written in Java.
Java Design Patterns: The State Pattern
Java Design Patterns: The State Pattern
Antony Quinn
Adapter pattern
Adapter pattern
Adapter pattern
Shakil Ahmed
Presented by Russell Searle to the Melbourne Patterns Group
Adapter Design Pattern
Adapter Design Pattern
melbournepatterns
Week 11
Builder pattern
Builder pattern
mentallog
Recommandé
A look into the state design pattern in C#.
The State Design Pattern
The State Design Pattern
Josh Candish
Dr. Govindappa Venkataswamy or Dr. V as he was affectionately called brought about a revolution in eye care in the southern state of Tamil Nadu in India. His achievements are spectacular enough for Harvard University to have done a case study on him for its graduate students.
Aravind eye hospital
Aravind eye hospital
Ananya Das
1. Adapter PatternShahriar Iqbal Chowdhury & Monjurul Habib Code Name: Remington http://www.facebook.com/groups/netter/ 2. What is Adapter• A device for connecting pieces of equipment that cannot be connected directly• An adapter allows classes to work together that normally could not because of incompatible interfaces 3. Missing something?? 4. How does it work? 5. When we need?• Convert the interface of a class into another interface that client expects.• Allow classes to work together that couldn’t because of incompatible interfaces.• Future clients can be satisfied through the creation of additional concrete Adapter.• Adapter is meant to change the interface of an existing object.• A way to achieve OCP(Open/Closed Principle) 6. Client Component 7. Client AdapterComponent/ Adaptee 8. Adapters in the real world 9. UML Structure 10. Way to use (ref. DoFactory) 11. Client 12. Adapter 13. Adaptee 14. Another shocking example 15. Adapter @.NET Framework• From .NET-based code you can easily call legacy COM objects and vice versa.• Behind the scenes, Visual Studio® .NET create a Runtime Callable Wrapper (RCW) class. Inside the RCW, .NET specific format is converted into a format that the COM component expects and vise versa.• Data Adapters adapts data from different source (SQL Server, Oracle, ODBC, OLE DB) to dataset.• Different Data Adapter classes are usedSqlDataAdapterOdbcDataAdapterOleDbDataAdapter 16. Real World Scenario’s• Most of the applications using third party libraries use adapters as a middle layer between the application and the 3rd party library.• Memory card reader software.
Adapter Pattern
Adapter Pattern
Monjurul Habib
About Visitor Design Pattern
Visitor design patterns
Visitor design patterns
Nishant Mevawala
A short course in the State design pattern using cells, tadpoles and frogs as examples. Code examples are written in Java.
Java Design Patterns: The State Pattern
Java Design Patterns: The State Pattern
Antony Quinn
Adapter pattern
Adapter pattern
Adapter pattern
Shakil Ahmed
Presented by Russell Searle to the Melbourne Patterns Group
Adapter Design Pattern
Adapter Design Pattern
melbournepatterns
Week 11
Builder pattern
Builder pattern
mentallog
The 23 gof design patterns in java ,the summary
The 23 gof design patterns in java ,the summary
guestebd714
Discussing the Adapter Pattern as part of the Object Oriented Impostor Patterns. Examples from Russ Olsen's Design Patterns in Ruby book.
Object Oriented Impostor - Adapter Pattern
Object Oriented Impostor - Adapter Pattern
Meagan Waller
Design pattern builder 20131115
Design pattern builder 20131115
LearningTech
Learn how to implement the adapter design pattern
Implementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
ProdigyView
An Introduction to
An Introduction to
melbournepatterns
Slides for design pattern class
Visitor Pattern
Visitor Pattern
Ider Zheng
The visitor design pattern
The visitor design pattern
Samnang Chhun
Assessing the Java Native Interface
Adapter Design Pattern
Adapter Design Pattern
guy_davis
Design patterns: Builder Pattern
Builder pattern
Builder pattern
Jyaasa Technologies
Structural Design pattern - Adapter
Structural Design pattern - Adapter
Manoj Kumar
Generic Construction -Different Representation This presentation provide information to understand builder design pattern, it’s structure, it’s implementation.
Builder Design Pattern (Generic Construction -Different Representation)
Builder Design Pattern (Generic Construction -Different Representation)
Sameer Rathoud
Builder pattern
Builder pattern
Shakil Ahmed
A presentation on software design patterns
Software design patterns ppt
Software design patterns ppt
mkruthika
This slide introduction about state pattern. It also show how this pattern allow us handle Event easier.
State pattern
State pattern
Ricky Nguyen
It is the last pattern of GOF design pattern
Visitor pattern
Visitor pattern
Nikunj Dhameliya
googleplayservice 7.8 & andorid M tech
google play service 7.8 & new tech in M
google play service 7.8 & new tech in M
Ted Liang
introduce google io 2015 about android
what new in google io 2015
what new in google io 2015
Ted Liang
a small talk about activity transition. 說明要如何一步步完成我們的activity transition.
Android Activity Transition(ShareElement)
Android Activity Transition(ShareElement)
Ted Liang
a small talk about activity transition
Android Activity Transition(ShareElement)
Android Activity Transition(ShareElement)
Ted Liang
無標題簡報
無標題簡報
Ted Liang
about android gradle and flavor
Android Gradle about using flavor
Android Gradle about using flavor
Ted Liang
about using android third party library Dagger, Rxjava, Retrofit
Dagger & rxjava & retrofit
Dagger & rxjava & retrofit
Ted Liang
Contenu connexe
En vedette
The 23 gof design patterns in java ,the summary
The 23 gof design patterns in java ,the summary
guestebd714
Discussing the Adapter Pattern as part of the Object Oriented Impostor Patterns. Examples from Russ Olsen's Design Patterns in Ruby book.
Object Oriented Impostor - Adapter Pattern
Object Oriented Impostor - Adapter Pattern
Meagan Waller
Design pattern builder 20131115
Design pattern builder 20131115
LearningTech
Learn how to implement the adapter design pattern
Implementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
ProdigyView
An Introduction to
An Introduction to
melbournepatterns
Slides for design pattern class
Visitor Pattern
Visitor Pattern
Ider Zheng
The visitor design pattern
The visitor design pattern
Samnang Chhun
Assessing the Java Native Interface
Adapter Design Pattern
Adapter Design Pattern
guy_davis
Design patterns: Builder Pattern
Builder pattern
Builder pattern
Jyaasa Technologies
Structural Design pattern - Adapter
Structural Design pattern - Adapter
Manoj Kumar
Generic Construction -Different Representation This presentation provide information to understand builder design pattern, it’s structure, it’s implementation.
Builder Design Pattern (Generic Construction -Different Representation)
Builder Design Pattern (Generic Construction -Different Representation)
Sameer Rathoud
Builder pattern
Builder pattern
Shakil Ahmed
A presentation on software design patterns
Software design patterns ppt
Software design patterns ppt
mkruthika
This slide introduction about state pattern. It also show how this pattern allow us handle Event easier.
State pattern
State pattern
Ricky Nguyen
It is the last pattern of GOF design pattern
Visitor pattern
Visitor pattern
Nikunj Dhameliya
En vedette
(15)
The 23 gof design patterns in java ,the summary
The 23 gof design patterns in java ,the summary
Object Oriented Impostor - Adapter Pattern
Object Oriented Impostor - Adapter Pattern
Design pattern builder 20131115
Design pattern builder 20131115
Implementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
An Introduction to
An Introduction to
Visitor Pattern
Visitor Pattern
The visitor design pattern
The visitor design pattern
Adapter Design Pattern
Adapter Design Pattern
Builder pattern
Builder pattern
Structural Design pattern - Adapter
Structural Design pattern - Adapter
Builder Design Pattern (Generic Construction -Different Representation)
Builder Design Pattern (Generic Construction -Different Representation)
Builder pattern
Builder pattern
Software design patterns ppt
Software design patterns ppt
State pattern
State pattern
Visitor pattern
Visitor pattern
Plus de Ted Liang
googleplayservice 7.8 & andorid M tech
google play service 7.8 & new tech in M
google play service 7.8 & new tech in M
Ted Liang
introduce google io 2015 about android
what new in google io 2015
what new in google io 2015
Ted Liang
a small talk about activity transition. 說明要如何一步步完成我們的activity transition.
Android Activity Transition(ShareElement)
Android Activity Transition(ShareElement)
Ted Liang
a small talk about activity transition
Android Activity Transition(ShareElement)
Android Activity Transition(ShareElement)
Ted Liang
無標題簡報
無標題簡報
Ted Liang
about android gradle and flavor
Android Gradle about using flavor
Android Gradle about using flavor
Ted Liang
about using android third party library Dagger, Rxjava, Retrofit
Dagger & rxjava & retrofit
Dagger & rxjava & retrofit
Ted Liang
Design pattern, Strategy
Strategy Pattern
Strategy Pattern
Ted Liang
設計模式的解析與活用 -開拓視野
設計模式的解析與活用 -開拓視野
設計模式的解析與活用 -開拓視野
Ted Liang
Design pattern intro
Design pattern intro
Ted Liang
物件導向範型
物件導向範型
Ted Liang
Git簡報
Git簡報
Ted Liang
Plus de Ted Liang
(12)
google play service 7.8 & new tech in M
google play service 7.8 & new tech in M
what new in google io 2015
what new in google io 2015
Android Activity Transition(ShareElement)
Android Activity Transition(ShareElement)
Android Activity Transition(ShareElement)
Android Activity Transition(ShareElement)
無標題簡報
無標題簡報
Android Gradle about using flavor
Android Gradle about using flavor
Dagger & rxjava & retrofit
Dagger & rxjava & retrofit
Strategy Pattern
Strategy Pattern
設計模式的解析與活用 -開拓視野
設計模式的解析與活用 -開拓視野
Design pattern intro
Design pattern intro
物件導向範型
物件導向範型
Git簡報
Git簡報
Adapter Pattern
1.
Adapter Pattern Ted
2.
3.
• 將一個類別的介面轉換成客戶希望的另外 一個介面。Adapter模式使原本由於介面不 相容而不能一起工作的類別可以一起工作
4.
Shape Rectangle Triangle
5.
Shape Void display() Rectangle Void display() Triangle Void
display() Third-Party Circle Void ShowCircle() • 顯示圖型的方法不同 • 類別不同 Shape vs IShap IShap Void ShowCircle()
6.
7.
• 物件Adapter模式 • 類別Adapter模式
8.
9.
10.
11.
12.
Facade vs Adapter Facade
Adapter 是否存在既有類別 是 是 是否必須依某個介面設計 否 是 物件需要多型行為 否 可能 需要更簡單的行為 是 否
13.
• Adapter模式 將一個或多個類別的介面轉換 成我們需要類別所具備的介面
Télécharger maintenant