From c623123a400745e8b59f4e4135e6c3967bfc1029 Mon Sep 17 00:00:00 2001 From: Vip-Augus <850366301@qq.com> Date: Sun, 30 Jun 2019 14:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E6=89=A9=E5=B1=95=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20=E4=B8=8B=E7=AF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-analysis-note/note/2019-06-30-spring-analysis-note-7.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-analysis-note/note/2019-06-30-spring-analysis-note-7.md b/spring-analysis-note/note/2019-06-30-spring-analysis-note-7.md index 44466ba2..b67586ea 100644 --- a/spring-analysis-note/note/2019-06-30-spring-analysis-note-7.md +++ b/spring-analysis-note/note/2019-06-30-spring-analysis-note-7.md @@ -406,6 +406,8 @@ getApplicationEventMulticaster().multicastEvent(applicationEvent, eventType); **也可以通过广播事件,定义事件和监听器,在监听器中实现业务逻辑,由于不是直接调用监听器,而是通过事件广播器进行中转,达到了代码解耦的效果。** +**所以在之后的代码设计和编写中,在整体设计上,有必要的话,考虑在更高的抽象层要预留扩展功能,然后让子类重载或者实现,实现扩展的功能。** + --- **由于个人技术有限,如果有理解不到位或者错误的地方,请留下评论,我会根据朋友们的建议进行修正**