serialization
-
SingletonModeling/DesignPattern 2020. 2. 24. 14:05
1. Overview The singleton pattern is one of the simplest design patterns. Sometimes we need to have only one instance of our class, for example, a single DB connection shared by multiple objects as creating a separate DB connection for every object may be costly. Similarly, there can be a single configuration manager or error manager in an application that handles all problems instead of creatin..