@Configuration
public class TransactionalNoopDuplicateMessageDetectorConfiguration {
@Bean
public DuplicateMessageDetector duplicateMessageDetector(EventuateTransactionTemplate eventuateTransactionTemplate) {
return new TransactionalNoopDuplicateMessageDetector(eventuateTransactionTemplate);
}
}
TransactionalNoopDuplicateMessageDetectorConfiguration is Spring specific
It injects a generic @Bean EventuateTransactionTemplate,
It could just pass a lambda to TransactionalNoopDuplicateMessageDetector that invokes Spring's TransactionTemplate
Not sure why https://github.com/eventuate-tram/eventuate-tram-core/commit/bddf3e4b2760b9ce174188ccaa853eaa11a805a8 made this change.
For example,
Related to #146