public class AdviceAdapterListener extends Object implements EventListener
sandbox-api:1.0.10| 构造器和说明 |
|---|
AdviceAdapterListener(AdviceListener adviceListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onEvent(Event event)
触发事件处理
事件处理是整个sandbox最重要的一环,也是整个系统设计的精髓所在
事件流转流程
+-------+
| |
+========+ <return> +========+ | <return immediately>
| | <return immediately> | | |
| BEFORE |---------------------->| RETURN |<---+
| | | |
+========+ +========+
| | ^
| <throws immediately> | |
| | | <return immediately>
| v |
| +========+
| | |
+--------------------------->| THROWS |<---+
<throws> | | |
<throws immediately> +========+ | <throws immediately>
| |
+-------+
|
public AdviceAdapterListener(AdviceListener adviceListener)
public final void onEvent(Event event) throws Throwable
EventListener事件处理是整个sandbox最重要的一环,也是整个系统设计的精髓所在
事件流转流程
+-------+
| |
+========+ <return> +========+ | <return immediately>
| | <return immediately> | | |
| BEFORE |---------------------->| RETURN |<---+
| | | |
+========+ +========+
| | ^
| <throws immediately> | |
| | | <return immediately>
| v |
| +========+
| | |
+--------------------------->| THROWS |<---+
<throws> | | |
<throws immediately> +========+ | <throws immediately>
| |
+-------+
onEvent 在接口中 EventListenerevent - 触发事件Throwable - 处理异常Copyright © 2019 Alibaba Open Source. All rights reserved.