File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
spring-context/src/main/java/org/springframework/context/event Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ else if (result instanceof CompletionStage) {
274
274
handleAsyncError (ex );
275
275
}
276
276
else if (event != null ) {
277
- publishEvent (event );
277
+ publishEvents (event );
278
278
}
279
279
});
280
280
}
@@ -468,6 +468,9 @@ public String toString() {
468
468
}
469
469
470
470
471
+ /**
472
+ * Inner class to avoid a hard dependency on the Reactive Streams API at runtime.
473
+ */
471
474
private class ReactiveResultHandler {
472
475
473
476
public boolean subscribeToPublisher (Object result ) {
@@ -481,6 +484,9 @@ public boolean subscribeToPublisher(Object result) {
481
484
}
482
485
483
486
487
+ /**
488
+ * Reactive Streams Subscriber for publishing follow-up events.
489
+ */
484
490
private class EventPublicationSubscriber implements Subscriber <Object > {
485
491
486
492
@ Override
You can’t perform that action at this time.
0 commit comments