AbstractApplicationContext.getApplicationListeners() exposes all statically registered listeners

Issue: SPR-17324

(cherry picked from commit c8c0737ce7)
This commit is contained in:
Juergen Hoeller
2018-10-09 23:13:37 +02:00
parent ca0ce7d631
commit d61a7ed1f0

View File

@@ -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);
}
/**