Singleton Design Pattern implementation in Java
November 8, 2009 at 5:57 am
|
Ensure a class has only one instance and provides a global point of access to it |
|
Useful when exactly one instance of a class is needed to coordinate actions |
|
Abstract Factory,Prototype and Builder can use Singleton in their implementation |
|
Often preffered as global variables -Provides OO Design scope,Allows lazy initialization or dynamic change in behaviour |
|
Facade objects and State objects are often SIngletons |
|
|
Advertisement
Like this:
Be the first to like this post.
Entry filed under: Uncategorized. Tags: .
Trackback this post | Subscribe to the comments via RSS Feed