Proxy Pattern: “Proxy is a structural design pattern that lets you provide a substitute or placeholder for another object. A proxy controls access to the original object, allowing you to perform something either before or after the request gets through to the original object.” “A credit card is a proxy for a bank account, which …
Category: Java Design Patterns
Java Design Patterns
May 06
Java: Facade Design Pattern
Façade Pattern “Facade is a structural design pattern that provides a simplified interface to a library, a framework, or any other complex set of classes.” “When you call a shop to place a phone order, an operator is your facade to all services and departments of the shop. The operator provides you with a simple …
May 06
Java : Decorator Design pattern
Decorator Design pattern: Decorator is a structural design pattern that lets you attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors. Example: Assume: A notifier class/object can send only email messages. But the application at a later time may want to use text/SMS, FB, or similar messages. …