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