@Configuration @ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class}) @ConditionalOnWebApplication public class EndpointWebMvcAutoConfiguration extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.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(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansException@Bean public ManagementContextResolver managementContextResolver()
@Bean public ManagementServletContext managementServletContext(ManagementServerProperties properties)
public void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingletonCopyright © 2017 Pivotal Software, Inc.. All rights reserved.