@Configuration @ConditionalOnWebApplication @ConditionalOnClass(value={org.jolokia.http.AgentServlet.class,org.springframework.web.servlet.mvc.ServletWrappingController.class}) @EnableConfigurationProperties(value=JolokiaProperties.class) public class JolokiaAutoConfiguration extends Object
Auto-configuration
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
endpoints.jolokia.enabled: false
or endpoints.enabled: false
.
Additional configuration parameters for Jolokia can be provided by specifying
jolokia.config.*
properties. See the
http://jolokia.org web site for more information on
supported configuration parameters.
Constructor and Description |
---|
JolokiaAutoConfiguration(JolokiaProperties properties) |
Modifier and Type | Method and Description |
---|---|
JolokiaMvcEndpoint |
jolokiaEndpoint() |
public JolokiaAutoConfiguration(JolokiaProperties properties)
@Bean @ConditionalOnMissingBean public JolokiaMvcEndpoint jolokiaEndpoint()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.