@Configuration @ConditionalOnClass(value={, }) @ConditionalOnWebApplication public class EndpointWebMvcAutoConfiguration extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
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.ManagementServerPort |
Constructor and Description |
---|
EndpointWebMvcAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
EndpointHandlerMapping |
endpointHandlerMapping() |
EnvironmentMvcEndpoint |
environmentMvcEndpoint(EnvironmentEndpoint delegate) |
MetricsMvcEndpoint |
metricsMvcEndpoint(MetricsEndpoint delegate) |
MvcEndpoints |
mvcEndpoints() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
ShutdownMvcEndpoint |
shutdownMvcEndpoint(ShutdownEndpoint delegate) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
@Bean @ConditionalOnMissingBean public EndpointHandlerMapping endpointHandlerMapping()
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
@Bean @ConditionalOnMissingBean public MvcEndpoints mvcEndpoints()
@Bean @ConditionalOnBean(value=EnvironmentEndpoint.class) public EnvironmentMvcEndpoint environmentMvcEndpoint(EnvironmentEndpoint delegate)
@Bean @ConditionalOnBean(value=MetricsEndpoint.class) public MetricsMvcEndpoint metricsMvcEndpoint(MetricsEndpoint delegate)
@Bean @ConditionalOnBean(value=ShutdownEndpoint.class) public ShutdownMvcEndpoint shutdownMvcEndpoint(ShutdownEndpoint delegate)
Copyright © 2014. All rights reserved.