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

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

Introduction

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

@SuppressWarnings({ "rawtypes", "unchecked" })
private void invokeCustomizer(WebServerFactoryCustomizer customizer, WebServerFactory webServerFactory) {
    try {/*from  ww w.  ja  v a 2s .  c  o m*/
        customizer.customize(webServerFactory);
    } catch (ClassCastException ex) {
        String msg = ex.getMessage();
        if (msg == null || msg.startsWith(webServerFactory.getClass().getName())) {
            // Possibly a lambda-defined listener which we could not resolve the
            // generic event type for
            logLambdaDebug(customizer, ex);
        } else {
            throw ex;
        }
    }
}