Example usage for org.springframework.jmx.export.annotation AnnotationMBeanExporter AnnotationMBeanExporter

List of usage examples for org.springframework.jmx.export.annotation AnnotationMBeanExporter AnnotationMBeanExporter

Introduction

In this page you can find the example usage for org.springframework.jmx.export.annotation AnnotationMBeanExporter AnnotationMBeanExporter.

Prototype

public AnnotationMBeanExporter() 

Source Link

Usage

From source file:org.jbr.commons.container.java.JavaSpringContainerConfig.java

@Bean
public AnnotationMBeanExporter annotationMBeanExporter(
        @Value("${jmxDomain:org.jrb.shared.container}") final String jmxDomain) {
    final AnnotationMBeanExporter exporter = new AnnotationMBeanExporter();
    if (jmxDomain != null) {
        exporter.setDefaultDomain(jmxDomain);
    }/*from w  w  w .  jav  a  2  s .  c  om*/
    return exporter;
}

From source file:org.lightadmin.core.config.context.LightAdminRemoteConfiguration.java

@Bean
public AnnotationMBeanExporter annotationMBeanExporter() {
    return new AnnotationMBeanExporter();
}

From source file:fr.xebia.management.statistics.ProfileAspect.java

public void afterPropertiesSet() throws Exception {
    if (this.server == null) {
        this.server = JmxUtils.locateMBeanServer();
    }// w  w w.j a  v  a2 s.  co m

    this.mbeanExporter = new AnnotationMBeanExporter();
    this.mbeanExporter.setEnsureUniqueRuntimeObjectNames(false);
    this.mbeanExporter.setServer(this.server);
    this.mbeanExporter.setAutodetectMode(MBeanExporter.AUTODETECT_NONE);
    this.mbeanExporter.afterPropertiesSet();
}