gptkbp:instanceOf
|
Design Pattern
|
gptkbp:advantage
|
can add extra complexity
may require extra code for delegation
|
gptkbp:alsoKnownAs
|
wrapper pattern
|
gptkbp:benefit
|
improves code maintainability
increases class reusability
|
gptkbp:category
|
structural pattern
|
gptkbp:describedBy
|
gptkb:Gang_of_Four_book
|
gptkbp:describedYear
|
1994
|
gptkbp:example
|
.NET Stream adapters
Java I/O Streams
|
gptkbp:firstDescribed
|
gptkb:Erich_Gamma
gptkb:John_Vlissides
gptkb:Richard_Helm
gptkb:Ralph_Johnson
|
https://www.w3.org/2000/01/rdf-schema#label
|
Adapter pattern
|
gptkbp:implementedIn
|
class adapter
object adapter
|
gptkbp:motive
|
reuse existing code without modifying it
|
gptkbp:participants
|
gptkb:Target
Client
Adapter
Adaptee
|
gptkbp:publishedIn
|
gptkb:Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software
|
gptkbp:purpose
|
allow incompatible interfaces to work together
|
gptkbp:relatedTo
|
gptkb:Facade_pattern
Decorator pattern
|
gptkbp:UMLRepresentation
|
class diagram with Adapter, Target, Adaptee, Client
|
gptkbp:usedIn
|
object-oriented programming
|
gptkbp:bfsParent
|
gptkb:architecture
|
gptkbp:bfsLayer
|
3
|