Class RestrictedTransactionalEventListenerFactory
java.lang.Object
org.springframework.transaction.event.TransactionalEventListenerFactory
org.springframework.transaction.annotation.RestrictedTransactionalEventListenerFactory
- All Implemented Interfaces:
EventListenerFactory,Ordered
Extension of
TransactionalEventListenerFactory,
detecting invalid transaction configuration for transactional event listeners:
Transactional only supported with Propagation.REQUIRES_NEW
and Propagation.NOT_SUPPORTED.- Since:
- 6.1
- Author:
- Juergen Hoeller
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateApplicationListener(String beanName, Class<?> type, Method method) Create anApplicationListenerfor the specified method.Methods inherited from class org.springframework.transaction.event.TransactionalEventListenerFactory
getOrder, setOrder, supportsMethod
-
Constructor Details
-
RestrictedTransactionalEventListenerFactory
public RestrictedTransactionalEventListenerFactory()
-
-
Method Details
-
createApplicationListener
public ApplicationListener<?> createApplicationListener(String beanName, Class<?> type, Method method) Description copied from interface:EventListenerFactoryCreate anApplicationListenerfor the specified method.- Specified by:
createApplicationListenerin interfaceEventListenerFactory- Overrides:
createApplicationListenerin classTransactionalEventListenerFactory- Parameters:
beanName- the name of the beantype- the target type of the instancemethod- theEventListenerannotated method- Returns:
- an application listener, suitable to invoke the specified method
-