| 程序包 | 说明 |
|---|---|
| org.noear.solon | |
| org.noear.solon.core | |
| org.noear.solon.core.event |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> SolonApp |
SolonApp.onEvent(Class<T> type,
EventListener<T> handler)
订阅事件
|
<T> SolonApp |
SolonApp.onEvent(Class<T> type,
int index,
EventListener<T> handler)
订阅事件
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> AppContext |
AppContext.onEvent(Class<T> type,
EventListener<T> handler)
订阅事件
|
<T> AppContext |
AppContext.onEvent(Class<T> type,
int index,
EventListener<T> handler)
订阅事件
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
EventListenPipeline<Event>
事件监听管道
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
EventListenPipeline.add(EventListener<Event> listener)
添加监听
|
void |
EventListenPipeline.add(int index,
EventListener<Event> listener)
添加监听(带顺序位)
|
void |
EventListenPipeline.remove(EventListener<Event> listener)
移除监听
|
static <T> void |
EventBus.subscribe(Class<T> eventType,
EventListener<T> listener)
订阅事件
|
static <T> void |
EventBus.subscribe(Class<T> eventType,
int index,
EventListener<T> listener)
订阅事件
|
static <T> void |
EventBus.unsubscribe(EventListener<T> listener)
取消事件订阅
|
Copyright © 2024. All rights reserved.