Browsing archives for 'Creational pattern'

Creational Patterns – Abstract Factory Pattern

Abstract factory pattern,Creational pattern,Design Patterns 9 August 2010 | 0 Comments

Today we are going to see one of the design patterns abstract factory. Its one level of abstraction higher than factory pattern.The main use of Abstract Factory Patten is that is isolates the concrete classes which are generated.

Tagged in

Singletons in Java

Creational pattern,Design Patterns,JAVA/J2EE,Singleton pattern 16 July 2010 | 0 Comments

Singletons are the design pattern when you want only one instance of a class created. You make the constructor private, and give access to the instantiated object via a static instance method that creates the object if it has not been created already. The singleton class is threadsafe lazy instantiation. I hope many would be [...]