Skip to content

Commit c02e65f

Browse files
committed
Added alias names for GOF patterns iluwatar#267
1 parent fe63c9c commit c02e65f

File tree

12 files changed

+24
-0
lines changed

12 files changed

+24
-0
lines changed

abstract-factory/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tags:
99
- Gang Of Four
1010
---
1111

12+
**Also known as:** Kit
13+
1214
**Intent:** Provide an interface for creating families of related or dependent
1315
objects without specifying their concrete classes.
1416

adapter/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tags:
99
- Gang Of Four
1010
---
1111

12+
**Also known as:** Wrapper
13+
1214
**Intent:** Convert the interface of a class into another interface the clients
1315
expect. Adapter lets classes work together that couldn't otherwise because of
1416
incompatible interfaces.

bridge/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tags:
99
- Gang Of Four
1010
---
1111

12+
**Also known as:** Handle/Body
13+
1214
**Intent:** Decouple an abstraction from its implementation so that the two can
1315
vary independently.
1416

command/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tags:
99
- Gang Of Four
1010
---
1111

12+
**Also known as:** Action, Transaction
13+
1214
**Intent:** Encapsulate a request as an object, thereby letting you
1315
parameterize clients with different requests, queue or log requests, and
1416
support undoable operations.

decorator/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tags:
99
- Gang Of Four
1010
---
1111

12+
**Also known as:** Wrapper
13+
1214
**Intent:** Attach additional responsibilities to an object dynamically.
1315
Decorators provide a flexible alternative to subclassing for extending
1416
functionality.

factory-method/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ tags:
1010
- Gang Of Four
1111
---
1212

13+
**Also known as:** Virtual Constructor
14+
1315
**Intent:** Define an interface for creating an object, but let subclasses
1416
decide which class to instantiate. Factory Method lets a class defer
1517
instantiation to subclasses.

iterator/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ tags:
1010
- Gang Of Four
1111
---
1212

13+
**Also known as:** Cursor
14+
1315
**Intent:** Provide a way to access the elements of an aggregate object
1416
sequentially without exposing its underlying representation.
1517

memento/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tags:
99
- Gang Of Four
1010
---
1111

12+
**Also known as:** Token
13+
1214
**Intent:** Without violating encapsulation, capture and externalize an
1315
object's internal state so that the object can be restored to this state later.
1416

observer/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ tags:
1010
- Gang Of Four
1111
---
1212

13+
**Also known as:** Dependents, Publish-Subscribe
14+
1315
**Intent:** Define a one-to-many dependency between objects so that when one
1416
object changes state, all its dependents are notified and updated
1517
automatically.

proxy/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ tags:
1010
- Difficulty-Intermediate
1111
---
1212

13+
**Also known as:** Surrogate
14+
1315
**Intent:** Provide a surrogate or placeholder for another object to control
1416
access to it.
1517

0 commit comments

Comments
 (0)