Chain Responsiblity Design Pattern – Java
The Concept of this Design Pattern is decoupling the sender and receiver. Each receiver doesn’t know about it’s sender but contains the next receiver(successor to it) and so forth . Example of a basic Java Logger with a chain of responsibilty: import java.util.logging.Logger; Logger logger = Logger.getLogger(SomeLogger.class.getName()); logger.setLevel(Level.Severe); ConsoleHandler handler =Continue Reading