List of usage examples for org.springframework.boot.web.server WebServerFactory getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
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;
}
}
}