File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
spring-context/src/main/java/org/springframework/context Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
28
28
* @see org.springframework.context.ApplicationEvent
29
29
* @see org.springframework.context.event.EventPublicationInterceptor
30
30
*/
31
+ @ FunctionalInterface
31
32
public interface ApplicationEventPublisher {
32
33
33
34
/**
@@ -37,7 +38,9 @@ public interface ApplicationEventPublisher {
37
38
* @param event the event to publish
38
39
* @see org.springframework.web.context.support.RequestHandledEvent
39
40
*/
40
- void publishEvent (ApplicationEvent event );
41
+ default void publishEvent (ApplicationEvent event ) {
42
+ publishEvent ((Object ) event );
43
+ }
41
44
42
45
/**
43
46
* Notify all <strong>matching</strong> listeners registered with this
You can’t perform that action at this time.
0 commit comments