Intent The singleton pattern ensures a class has only one instance, and it provides a global point of access to it. It's a type of creational design pattern Motivation behind the pattern, the problem it solves? There has been multiple scenarios where...
Markdown supported · ⌘↵ to post
Nice artical Aditya. If i want to make eagar instantiation thread safe then in that case, is it required to add syncronize block for EagerInstantiationSingleton getInstance method.
Nitin Khaitan
Towards Polyglot Architecture
Kudos for the excellent article.
Below is a good read about the design pattern for the database layer: medium.com / towards-polyglot-architecture / design-patterns-for-the-database-layer-7b741b126036