Move getListenerId method to Smart/GenericApplicationListener

See gh-26638
This commit is contained in:
Juergen Hoeller
2021-03-09 12:30:52 +01:00
parent 4b80ef21b6
commit 3c9bd3177e
8 changed files with 54 additions and 67 deletions

View File

@@ -64,11 +64,10 @@ public interface TransactionalApplicationListener<E extends ApplicationEvent>
* <p>It might be necessary for specific completion callback implementations
* to provide a specific id, whereas for other scenarios an empty String
* (as the common default value) is acceptable as well.
* @see ApplicationListener#getListenerId()
* @see org.springframework.context.event.SmartApplicationListener#getListenerId()
* @see TransactionalEventListener#id
* @see #addCallback
*/
@Override
default String getListenerId() {
return "";
}