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

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

Introduction

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

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

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

public void customize(PlatformTransactionManager transactionManager) {
    if (this.customizers != null) {
        for (PlatformTransactionManagerCustomizer<?> customizer : this.customizers) {
            Class<?> generic = ResolvableType
                    .forClass(PlatformTransactionManagerCustomizer.class, customizer.getClass())
                    .resolveGeneric();/*w  ww .  j a  v  a2s.c  o  m*/
            if (generic.isInstance(transactionManager)) {
                customize(transactionManager, customizer);
            }
        }
    }
}