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
-
Method Summary
Modifier and TypeMethodDescriptioncreateApplicationListener
(String beanName, Class<?> type, Method method) Create anApplicationListener
for 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:EventListenerFactory
Create anApplicationListener
for the specified method.- Specified by:
createApplicationListener
in interfaceEventListenerFactory
- Overrides:
createApplicationListener
in classTransactionalEventListenerFactory
- Parameters:
beanName
- the name of the beantype
- the target type of the instancemethod
- theEventListener
annotated method- Returns:
- an application listener, suitable to invoke the specified method
-