@Configuration @ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class}) @ConditionalOnWebApplication(type=SERVLET) @EnableConfigurationProperties(value=ManagementServerProperties.class) public class EndpointWebMvcAutoConfiguration extends Object implements ApplicationContextAware, SmartInitializingSingleton
Auto-configuration to enable Spring MVC to handle
Endpoint requests. If the ManagementServerProperties specifies a
different port to ServerProperties a new child context is created, otherwise it
is assumed that endpoint requests will be mapped and handled via an already registered
DispatcherServlet.| Modifier and Type | Class and Description |
|---|---|
protected static class |
EndpointWebMvcAutoConfiguration.ApplicationContextFilterConfiguration |
protected static class |
EndpointWebMvcAutoConfiguration.EndpointWebMvcConfiguration |
protected static class |
EndpointWebMvcAutoConfiguration.ManagementServerPort |
| Constructor and Description |
|---|
EndpointWebMvcAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSingletonsInstantiated() |
ManagementContextResolver |
managementContextResolver() |
ManagementServletContext |
managementServletContext(ManagementServerProperties properties) |
void |
setApplicationContext(ApplicationContext applicationContext) |
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansException@Bean public ManagementContextResolver managementContextResolver()
@Bean public ManagementServletContext managementServletContext(ManagementServerProperties properties)
public void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface SmartInitializingSingletonCopyright © 2017 Pivotal Software, Inc.. All rights reserved.