Example usage for org.springframework.boot.web.server WebServerFactoryCustomizer getClass

List of usage examples for org.springframework.boot.web.server WebServerFactoryCustomizer getClass

Introduction

In this page you can find the example usage for org.springframework.boot.web.server WebServerFactoryCustomizer 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.web.server.WebServerFactoryCustomizerBeanPostProcessor.java

private void postProcessBeforeInitialization(WebServerFactory bean) {
    for (WebServerFactoryCustomizer<?> customizer : getCustomizers()) {
        Class<?> type = ResolvableType.forClass(WebServerFactoryCustomizer.class, customizer.getClass())
                .getGeneric().resolve(WebServerFactory.class);
        if (type.isInstance(bean)) {
            invokeCustomizer(customizer, bean);
        }//from w w  w  .  j  a va 2s  .  co  m
    }
}