Design Pattern: Proxy Pattern in Java
Proxy pattern is used where we can not use the actual class object, and we want to represent the actual object with some proxy object. This article demonstrates Proxy pattern implementations in Java.
Proxy pattern is used where we can not use the actual class object, and we want to represent the actual object with some proxy object. This article demonstrates Proxy pattern implementations in Java.
Prototype pattern is used to create a new object by cloning an existing one, to reduce the resource usage of object creation. This article demonstrates Prototype pattern implementations in Java.
Visitor pattern is used to move the operation/calculation part from a group of classes to a completely separate(Visitor) class. This article demonstrates Visitor pattern implementations in Java.
Template Method pattern is used to implement a process where subclasses can change some steps of the parent. This article demonstrates Template Method pattern implementations in Java.
State pattern is used to change the behavior of an object when the state is changed. With the change in state, the behavior of that object is completely changed. This article demonstrates State pattern implementations in Java.
Observer pattern is used to automatically notify state change in object to all its dependent objects. It works as a pub/sub for state change between objects. This article demonstrates Observer pattern implementations in Java.
Memento pattern is used to store the history of state changes of an object so that that history can be used to track back the change or be used for some other purpose. This article demonstrates Memento pattern implementations in Java.
Mediator pattern is used to restrict direct interaction between objects. A mediator class works as the middleman/communicator when one object wants to connect/use another object. This article demonstrates Mediator pattern implementations in Java.
Iterator pattern is used to traverse and iterate through a list of items. This article demonstrates Iterator pattern implementations in Java.
Interpreter pattern is used to represent any language operation in Object Oriented Programming context. This article demonstrates Interpreter pattern implementations in Java.