Skip to content

Commit db09972

Browse files
authored
Update README.md
1 parent 10b9770 commit db09972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
The singleton pattern is a GOF creational design pattern that restricts the instantiation of a class to single object. This is useful when exactly one object is needed to coordinate actions across the system.
33

44
## Diagram
5-
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/decorator-pattern/diagrams/Decorator%20Pattern%20class%20diagram.jpeg "Diagram")
5+
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/singleton/diagrams/singleton%20pattern%20diagram.png "Diagram")
66

77
### When to use Singleton Design Pattern
88
Application needs one, and only one, instance of an object. Additionally, lazy initialization and global access are necessary and state of objects needs to be shared accross application. Logger and Print Spooler are candidate application for singleton.

0 commit comments

Comments
 (0)