spring-projects/spring-framework — pull request #673 by MoonJongMin (2014-10-23 05:30:10+00:00)
Title: Some methods in the org.springframework.core.task.AsyncListenableTaskExecutor class need to be added.

org.springframework.core.task.AsyncListenableTaskExecutor has submitListenable(Callable) method.
This return ListenableFuture object after
ListenableFutureTask.execute(ListenableFutureTask future).
As Juergen Hoeller mentioned in the
SPR-12358(https://jira.spring.io/i#browse/SPR-12358),
if the async task has already been fully executed at the time of the
addCallback call,
Spring's ListenableFutureCallbackRegistry is executing the callback in
the caller's thread
since the async thread can't be used for it anymore.
I think AsyncListenableTaskExecutor is needed to be improved in order to
add callback
before ListenableFutureTask.execute(ListenableFutureTask future) method
is called.

ISSUE : SPR-12364

I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.