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. 2
      spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

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

@ -500,10 +500,8 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader @@ -500,10 +500,8 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
if (this.applicationEventMulticaster != null) {
this.applicationEventMulticaster.addApplicationListener(listener);
}
else {
this.applicationListeners.add(listener);
}
}
/**
* Return the list of statically specified ApplicationListeners.

Loading…
Cancel
Save