Use ServletWrappingController for jolokia instead of Servlet
We get more control over the handling and in particular the registration
of the endpoint this way. It was practically impossible to disable the
AgentServlet bean when in a parent context of the management server
because of lifecyce issues - you don't know that the user wants a
separate management server until too late.
This approach also makes it possible to test with spring-test MVC
support.
@ -85,8 +86,14 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -85,8 +86,14 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -98,12 +105,6 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -98,12 +105,6 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -114,18 +115,23 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -114,18 +115,23 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -181,11 +187,11 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -181,11 +187,11 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -208,7 +214,7 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@@ -208,7 +214,7 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
@ -74,4 +112,37 @@ public class JolokiaMvcEndpoint implements MvcEndpoint {
@@ -74,4 +112,37 @@ public class JolokiaMvcEndpoint implements MvcEndpoint {
@ -112,7 +112,6 @@ public class BasicErrorControllerSpecialIntegrationTests {
@@ -112,7 +112,6 @@ public class BasicErrorControllerSpecialIntegrationTests {
@ -249,23 +249,30 @@ public class PropertiesConfigurationFactory<T> implements FactoryBean<T>,
@@ -249,23 +249,30 @@ public class PropertiesConfigurationFactory<T> implements FactoryBean<T>,
@ -45,37 +45,39 @@ public class PropertySourcesPropertyValues implements PropertyValues {
@@ -45,37 +45,39 @@ public class PropertySourcesPropertyValues implements PropertyValues {
@ -91,6 +93,25 @@ public class PropertySourcesPropertyValues implements PropertyValues {
@@ -91,6 +93,25 @@ public class PropertySourcesPropertyValues implements PropertyValues {
}
}
}
else{
// We can only do exact matches for non-enumerable property names, but
@ -52,7 +52,7 @@ public class ServletRegistrationBean extends RegistrationBean {
@@ -52,7 +52,7 @@ public class ServletRegistrationBean extends RegistrationBean {
@ -88,8 +88,7 @@ public class SpringApplicationContextLoader extends AbstractContextLoader {
@@ -88,8 +88,7 @@ public class SpringApplicationContextLoader extends AbstractContextLoader {