mirror of https://gitee.com/stylefeng/roses
【8.3.0】【event】更新事件发布的过程
parent
785ace7ba1
commit
07db019f30
|
@ -67,7 +67,9 @@ public class BusinessEventPublisher {
|
|||
|
||||
// 如果发布事件的时候,包含参数,则判断method的第一个参数是否和businessObject的class一样,不一样则不调用
|
||||
else {
|
||||
if (parameterClassType != null && parameterClassType.equals(businessObject.getClass())) {
|
||||
if (parameterClassType != null) {
|
||||
if (parameterClassType.equals(businessObject.getClass())
|
||||
|| parameterClassType.isAssignableFrom(businessObject.getClass())) {
|
||||
try {
|
||||
listenerMethod.invoke(bean, businessObject);
|
||||
} catch (IllegalAccessException | InvocationTargetException e) {
|
||||
|
@ -78,5 +80,6 @@ public class BusinessEventPublisher {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue