Class TransactionalApplicationListenerAdapter<E extends ApplicationEvent>

java.lang.Object
org.springframework.transaction.event.TransactionalApplicationListenerAdapter<E>
Type Parameters:
E - the specific ApplicationEvent subclass to listen to
All Implemented Interfaces:
EventListener, ApplicationListener<E>, Ordered, TransactionalApplicationListener<E>

public class TransactionalApplicationListenerAdapter<E extends ApplicationEvent> extends Object implements TransactionalApplicationListener<E>, Ordered
TransactionalApplicationListener adapter that delegates the processing of an event to a target ApplicationListener instance. Supports the exact same features as any regular ApplicationListener but is aware of the transactional context of the event publisher.

For simple PayloadApplicationEvent handling, consider the TransactionalApplicationListener.forPayload(java.util.function.Consumer<T>) factory methods as a convenient alternative to custom usage of this adapter class.

Since:
5.3
Author:
Juergen Hoeller
See Also: