T
- The configurable web server factory@FunctionalInterface public interface WebServerFactoryCustomizer<T extends WebServerFactory>
web server factories
. Any
beans of this type will get a callback with the server factory before the server itself
is started, so you can set the port, address, error pages etc.
Beware: calls to this interface are usually made from a
WebServerFactoryCustomizerBeanPostProcessor
which is a
BeanPostProcessor
(so called very early in the ApplicationContext lifecycle).
It might be safer to lookup dependencies lazily in the enclosing BeanFactory rather
than injecting them with @Autowired
.
WebServerFactoryCustomizerBeanPostProcessor
Modifier and Type | Method and Description |
---|---|
void |
customize(T server)
Customize the specified
WebServerFactory . |
void customize(T server)
WebServerFactory
.server
- the server to customizeCopyright © 2017 Pivotal Software, Inc.. All rights reserved.