spring-projects/spring-integration — pull request #982 by garyrussell (2013-11-20 23:48:28+00:00)
Title: INT-3214 Evebt Adapter Stop All Events

Previously, ApplicationContextEvents were emitted even when the adapter
was stopped.

Do not emit ApplicationContextEvents unless they are stop or close events
and the adapter was stopped in the last 5 seconds.

An existing test case verifies the code (applicationContextEvents).