Class EndpointWebMvcAutoConfiguration
- java.lang.Object
- org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.SmartInitializingSingleton,org.springframework.context.ApplicationContextAware
@Configuration @ConditionalOnClass({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.SmartInitializingSingletonAuto-configurationto enable Spring MVC to handleEndpointrequests. If theManagementServerPropertiesspecifies a different port toServerPropertiesa new child context is created, otherwise it is assumed that endpoint requests will be mapped and handled via an already registeredDispatcherServlet.
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classEndpointWebMvcAutoConfiguration.ApplicationContextFilterConfigurationprotected static classEndpointWebMvcAutoConfiguration.EndpointWebMvcConfigurationprotected static classEndpointWebMvcAutoConfiguration.ManagementServerPort
Constructor Summary
Constructors Constructor Description EndpointWebMvcAutoConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterSingletonsInstantiated()ManagementContextResolvermanagementContextResolver()ManagementServletContextmanagementServletContext(ManagementServerProperties properties)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Constructor Detail
EndpointWebMvcAutoConfiguration
public EndpointWebMvcAutoConfiguration()
Method Detail
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
managementContextResolver
@Bean public ManagementContextResolver managementContextResolver()
managementServletContext
@Bean public ManagementServletContext managementServletContext(ManagementServerProperties properties)
afterSingletonsInstantiated
public void afterSingletonsInstantiated()
- Specified by:
afterSingletonsInstantiatedin interfaceorg.springframework.beans.factory.SmartInitializingSingleton