Mediator

xiaoxiao2021-03-06  58

Benefits:... • It decouples colleagues • It simplifies object protocols • It centralizes control • The individual components become simpler and much easier to deal with because they do not need to pass messages to one another • The components do not need to contain. Logic to deal with their intercommunication and is the the the.

Applicable Scenarios:. • A set of objects communicates in complex but well-defined ways • Custom behavior distributed between several objects is required without subclassing It is commonly used structurally in message-based systems The messages themselves are the means by which related objects.. Are Decoupled.

转载请注明原文地址:https://www.9cbs.com/read-117183.html

New Post(0)