Adapter Pattern

GPTKB entity

Statements (28)
Predicate Object
gptkbp:instanceOf Software Design Pattern
gptkbp:alsoKnownAs Wrapper Pattern
gptkbp:author gptkb:Erich_Gamma
gptkb:John_Vlissides
gptkb:Richard_Helm
gptkb:Ralph_Johnson
gptkbp:benefit Promotes code reusability
Supports legacy code integration
gptkbp:category Structural Pattern
gptkbp:describedBy gptkb:Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software
gptkbp:example gptkb:Java
gptkb:Python
gptkb:C++
Java I/O Streams
.NET Stream Adapters
Legacy Database Wrappers
gptkbp:firstPublished 1994
https://www.w3.org/2000/01/rdf-schema#label Adapter Pattern
gptkbp:purpose Allow incompatible interfaces to work together
Convert the interface of a class into another interface clients expect
gptkbp:relatedTo Proxy Pattern
Decorator Pattern
Facade Pattern
gptkbp:UMLRepresentation gptkb:Object_Adapter
gptkb:Class_Adapter
gptkbp:usedIn Object-Oriented Programming
gptkbp:bfsParent gptkb:Design_Pattern
gptkbp:bfsLayer 5