From IT Skills
Contents
Creational[edit]
Singleton[edit]
Multiton[edit]
Factory method[edit]
let subclasses decide which class to instantiate.
for Performance[edit]
- Lazy initialization... appears in the GoF catalog as "virtual proxy", an implementation strategy for the #Proxy pattern
- lazy factory combines three ideas: Using a #Factory method ... Storing the instances in a map, and returning the same instance to each request for an instance with same parameters (#Multiton) ... Using lazy initialization
- Object pool pattern... uses a set of initialized objects kept ready to use – a "pool" – rather than allocating and destroying them on demand
Structural[edit]
- Adapter... Lets classes work together that couldn't otherwise because of incompatible interfaces
- its subclass uses foreign interface, but in #Proxy such implementation detail is unknown
- Decorator allows behavior to be added to an individual object, dynamically, without affecting the behavior of other objects from the same class... Decorator use can be more efficient than subclassing - it is Cacheing
Proxy[edit]
sender and receiver have same interface
Behavioural[edit]
- Command
- is the basis for Editing patterns, State management
- Observer (or Publish/subscribe)
- State, Strategy, Interpreter has Context; Template is a young Strategy
Asynchronous patterns[edit]
Subcategories
This category has the following 9 subcategories, out of 9 total.
A
E
G
P
V
Pages in category "Design patterns"
The following 20 pages are in this category, out of 20 total.