Browse Source

AbstractApplicationContext.getApplicationListeners() exposes all statically registered listeners

Issue: SPR-17324

(cherry picked from commit c8c0737ce7)
pull/1998/head
Juergen Hoeller 6 years ago
parent
commit
d61a7ed1f0
  1. 4
      spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

4
spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

@ -500,9 +500,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader @@ -500,9 +500,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
if (this.applicationEventMulticaster != null) {
this.applicationEventMulticaster.addApplicationListener(listener);
}
else {
this.applicationListeners.add(listener);
}
this.applicationListeners.add(listener);
}
/**

Loading…
Cancel
Save