Class TransactionalApplicationListenerMethodAdapter

java.lang.Object
org.springframework.context.event.ApplicationListenerMethodAdapter
org.springframework.transaction.event.TransactionalApplicationListenerMethodAdapter
All Implemented Interfaces:
EventListener, ApplicationListener<ApplicationEvent>, GenericApplicationListener, SmartApplicationListener, Ordered, TransactionalApplicationListener<ApplicationEvent>

public class TransactionalApplicationListenerMethodAdapter extends ApplicationListenerMethodAdapter implements TransactionalApplicationListener<ApplicationEvent>
GenericApplicationListener adapter that delegates the processing of an event to a TransactionalEventListener annotated method. Supports the exact same features as any regular EventListener annotated method but is aware of the transactional context of the event publisher.

Processing of TransactionalEventListener is enabled automatically when Spring's transaction management is enabled. For other cases, registering a bean of type TransactionalEventListenerFactory is required.

Since:
5.3
Author:
Stephane Nicoll, Juergen Hoeller
See Also: