设计模式 笔记 观察者模式

_notifiers = new HashMap<Class<?>, Notifier>();



xxDemo中

Notifier notifier = getNotifierRegistry().getNotifier(Notifier1.class)

notifier.notifyState();


原文地址:https://www.cnblogs.com/xinyuyuanm/p/2998646.html