Example usage for org.springframework.boot.autoconfigure.transaction PlatformTransactionManagerCustomizer customize

List of usage examples for org.springframework.boot.autoconfigure.transaction PlatformTransactionManagerCustomizer customize

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.transaction PlatformTransactionManagerCustomizer customize.

Prototype

void customize(T transactionManager);

Source Link

Document

Customize the given transaction manager.

Usage

From source file:org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizers.java

@SuppressWarnings({ "unchecked", "rawtypes" })
private void customize(PlatformTransactionManager transactionManager,
        PlatformTransactionManagerCustomizer customizer) {
    try {//from w ww  . j  a va  2s .co  m
        customizer.customize(transactionManager);
    } catch (ClassCastException ex) {
        // Possibly a lambda-defined customizer which we could not resolve the generic
        // transaction manager type for
        if (logger.isDebugEnabled()) {
            logger.debug("Non-matching transaction manager type for customizer: " + customizer, ex);
        }
    }
}