1.
Observer in Java
Observer design pattern Java example. The Observer defines a one-to-many relationship so that when one object changes state, the others are notified and ...
2.
Composite in Java
class Row extends Composite { // Two different kinds of "con- public Row( int val ) { super( val ); } // tainer" classes. Most of the ...
3.
Change Bidirectional Association to Unidirectional
You have a two-way association but one class no longer needs features from the other. Drop the unneeded end of the association. graphics/08fig07.gif ...
4.
Singleton in Java
Singleton design pattern Java example. The Singleton pattern ensures that a class has only one instance and provides a global point of access to that ...
5.
Adapter in Java
Adapter design pattern Java example. The Adapter pattern allows otherwise incompatible classes to work together by converting the interface of one class ...
6.
Bridge in Java
public Stack() { this( "array" ); } public void push( int in ) { impl.push( in ); } public int pop() { return impl.pop(); } ...
7.
Decorator in Java
Decorator design pattern Java example. The Decorator attaches additional responsibilities to an object dynamically.
8.
Facade in Java
Facade design pattern Java example. The Facade defines a unified, higher level interface to a subsystem that makes it easier to use.
9.
Abstract Factory in Java
Abstract Factory design pattern Java example. ... Abstract Factory classes are often implemented with Factory Methods, but they can also be implemented ...
10.
Observer in Java
Observer design pattern Java example. The Observer defines a one-to-many relationship so that when one object changes state, the others are notified and ...