User-submitted Design Patterns Projects

80
1838 reads
Sharon's picture

Submitted by

Sharon
Proxy Pattern
This example demonstrates Proxy Pattern in java.Proxy Pattern provide a “Placeholder” for an object to control references to it.
Run It Now!
73
1357 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!
71
2043 reads
Rohan's picture

Submitted by

Rohan
Roman Numeral Converter
This example demonstrates Roman Numeral Converter in java.The classical example fot the interpreter pattern is the one of interpreting the roman numerals.
Run It Now!
71
1232 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!
65
1303 reads
Rohan's picture

Submitted by

Rohan
Prototype
This example demonstrates prototype in java.prototype Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
Run It Now!
60
2109 reads
Sharon's picture

Submitted by

Sharon
Decorator pattern
This example demonstrates Decorator Pattern in java.Decorator Pattern add additional responsibilities dynamically to an object.
Run It Now!
57
1476 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!
55
1590 reads
Sharon's picture

Submitted by

Sharon
Flyweight Pattern
This example demonstrates Flyweight Pattern War-game in java. The intent of this pattern is to use sharing to support a large number of objects that have part of their internal state in common where
Run It Now!
50
1278 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!
49
1744 reads
Sharon's picture

Submitted by

Sharon
Adapter Pattern
This example demonstrates Adaptor Pattern in java.Adaptor Pattern Convert the interface of a class into another interface clients expect.
Run It Now!
Make & share a project and showcase your talent to the world!