Class TransactionalApplicationListenerAdapter<E extends org.springframework.context.ApplicationEvent>

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

public class TransactionalApplicationListenerAdapter<E extends org.springframework.context.ApplicationEvent> extends Object implements TransactionalApplicationListener<E>, org.springframework.core.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: