@ManagementContextConfiguration @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value={org.jolokia.http.AgentServlet.class,org.springframework.web.servlet.mvc.ServletWrappingController.class}) @ConditionalOnProperty(value="management.jolokia.enabled", havingValue="true") @EnableConfigurationProperties(value=JolokiaProperties.class) public class JolokiaManagementContextConfiguration extends Object
ManagementContextConfiguration
for embedding Jolokia, a JMX-HTTP bridge giving
an alternative to JSR-160 connectors.
This configuration will get automatically enabled as soon as the Jolokia
AgentServlet
is on the classpath. To disable it set
management.jolokia.enabled=false
.
Additional configuration parameters for Jolokia can be provided by specifying
management.jolokia.config.*
properties. See the
http://jolokia.org web site for more information on
supported configuration parameters.
Constructor and Description |
---|
JolokiaManagementContextConfiguration(ManagementServletContext managementServletContext,
JolokiaProperties properties) |
Modifier and Type | Method and Description |
---|---|
ServletRegistrationBean<org.jolokia.http.AgentServlet> |
jolokiaServlet() |
public JolokiaManagementContextConfiguration(ManagementServletContext managementServletContext, JolokiaProperties properties)
@Bean public ServletRegistrationBean<org.jolokia.http.AgentServlet> jolokiaServlet()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.