@Configuration @EnableConfigurationProperties @ConditionalOnWebApplication public class ServerPropertiesAutoConfiguration extends Object implements ApplicationContextAware, EmbeddedServletContainerCustomizer, Ordered
Auto-configuration
that configures the
ConfigurableEmbeddedServletContainer
from a ServerProperties
bean.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ServerPropertiesAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
customize(ConfigurableEmbeddedServletContainer container)
Customize the specified
ConfigurableEmbeddedServletContainer . |
int |
getOrder() |
ServerProperties |
serverProperties() |
void |
setApplicationContext(ApplicationContext applicationContext) |
@Bean @ConditionalOnMissingBean(search=CURRENT) public ServerProperties serverProperties()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public void customize(ConfigurableEmbeddedServletContainer container)
EmbeddedServletContainerCustomizer
ConfigurableEmbeddedServletContainer
.customize
in interface EmbeddedServletContainerCustomizer
container
- the container to customizeCopyright © 2015 Pivotal Software, Inc.. All rights reserved.