List of usage examples for org.springframework.boot.web.server WebServerFactoryCustomizer customize
void customize(T factory);
From source file:org.springframework.boot.web.server.WebServerFactoryCustomizerBeanPostProcessor.java
@SuppressWarnings({ "rawtypes", "unchecked" })
private void invokeCustomizer(WebServerFactoryCustomizer customizer, WebServerFactory webServerFactory) {
try {//from ww w . j a va2 s. 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;
}
}
}