mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-20 04:24:13 +00:00
feat[event]: support virtual thread api
This commit is contained in:
@@ -27,18 +27,18 @@ import java.lang.reflect.Method;
|
||||
*/
|
||||
public class EventReceiverDefinition implements IEventReceiver {
|
||||
|
||||
|
||||
// 观察者的bean
|
||||
private Object bean;
|
||||
|
||||
// 被EventReceiver注解标注的方法
|
||||
private Method method;
|
||||
|
||||
// 接收的参数Class
|
||||
private Class<? extends IEvent> eventClazz;
|
||||
|
||||
// 事件接收方式
|
||||
private Bus bus;
|
||||
|
||||
// 接收的参数Class
|
||||
private Class<? extends IEvent> eventClazz;
|
||||
|
||||
public EventReceiverDefinition(Object bean, Method method, Bus bus, Class<? extends IEvent> eventClazz) {
|
||||
this.bean = bean;
|
||||
this.method = method;
|
||||
@@ -65,11 +65,13 @@ public class EventReceiverDefinition implements IEventReceiver {
|
||||
return method;
|
||||
}
|
||||
|
||||
public Bus getBus() {
|
||||
return bus;
|
||||
}
|
||||
|
||||
public Class<? extends IEvent> getEventClazz() {
|
||||
return eventClazz;
|
||||
}
|
||||
|
||||
public Bus getBus() {
|
||||
return bus;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user