Modeling/DesignPattern
-
Abstract factoryModeling/DesignPattern 2019. 8. 23. 06:38
1. Overview The abstract factory pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes. In normal usage, the client software creates a concrete implementation of the abstract factory and then uses the generic interface of the factory to create the concrete objects that are part of the theme. The client doesn't kno..
-
Factory PatternModeling/DesignPattern 2019. 8. 22. 09:17
1. Overview The factory method pattern is a creational pattern that uses factory methods to deal with the problem of creating objects without having to specify the exact class of the object that will be created. This is done by creating objects by calling a factory method—either specified in an interface and implemented by child classes, or implemented in a base class and optionally overridden b..
-
Simple Factory PatternModeling/DesignPattern 2019. 8. 22. 09:16
1. Overview 2. Description 2.1 Motivation Here we simply move the instantiation logic to a separate class and most commonly to a static method of this class Some do not consider a simple factory to be a design pattern, as its simply a method that encapsulates object instantiation. Nothing complex goes on in that method. Typically we want to do this if we have more than one option when instantiat..
-
Bridge Design PatternModeling/DesignPattern 2019. 8. 19. 23:05
1. Overview Bridge belongs to Structural patterns. This pattern allows us to vary independently between abstraction and implementations. but if Bridge has to be designed in advance, then only we can have varying abstractions & implementations. it has two parts. Abstraction Implementation Abstraction – the core of the bridge design pattern and defines the crux. Contains a reference to the impleme..