Observer miniWiki

Observer

意图

Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.

类图