User-submitted Design Patterns Projects

71
1257 reads
Praveen's picture

Submitted by

Praveen
Builder Pattern
This example demonstrates Builder Pattern in java. The Builder pattern defines an instance for creating an object but letting subclasses decide which class to instantiate and Allows a finer control o
Run It Now!
73
1385 reads
CrazyCoder's picture

Submitted by

CrazyCoder
Singleton Early Instatiation
This example demonstrates lazy instantiation using double locking machanism.In this example the singleton instance is created when the getInstance() method is called for the first time.
Run It Now!
50
1311 reads
ModCool's picture

Submitted by

ModCool
Singleton lazy Instatiation
this example demonstrates lazy instantiation using double locking machanism.In this example the singleton instance is created when the getInstance() method is called for the first time.
Run It Now!
57
1501 reads
ModCool's picture

Submitted by

ModCool
AbstractFactory
This example demonstrates Abstract Factory pattern. In this example AbstractFactory declares a interface for operations that create abstract products.ConcreteFactory implements operations to create c
Run It Now!
187
1849 reads
Theunknownbone's picture

Submitted by

Theunknownbone
Template Method
This example demonstrates Template Method in java.Template Method define the skeleton of an algorithm in an operation, deferring some steps to subclasses / Template Method lets subclasses redefine cer
Run It Now!
178
2555 reads
Theunknownbone's picture

Submitted by

Theunknownbone
Calculator driver
This example demonstrates Momento pattern in java. The intent of this pattern is to capture the internal state of an object without violating encapsulation and thus providing a mean for restoring the
Run It Now!
386
9003 reads
Madman0101's picture

Submitted by

Madman0101
Observer Pattern
This example demonstrates Observer Pattern in java. this example Observer Pattern Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notifi
Run It Now!
153
1809 reads
Madman0101's picture

Submitted by

Madman0101
Mediator Pattern
This example demonstrates Mediator Pattern in java.Mediator define an object that encapsulates how a set of objects interact.
Run It Now!
177
1871 reads
Madman0101's picture

Submitted by

Madman0101
Strategy
This example demonstrates Strategy in java. this example Strategy Define a family of algorithms, encapsulate each one, and make them interchangeable.
Run It Now!
185
1839 reads
Adrian999's picture

Submitted by

Adrian999
visitor pattern
This example demonstrates Visitor Pattern in java. In this example Visitor Pattern Represents an operation to be performed on the elements of an object structure / Visitor lets you define a new opera
Run It Now!