Example usage for org.springframework.jmx.export MBeanExporter AUTODETECT_NONE

List of usage examples for org.springframework.jmx.export MBeanExporter AUTODETECT_NONE

Introduction

In this page you can find the example usage for org.springframework.jmx.export MBeanExporter AUTODETECT_NONE.

Prototype

int AUTODETECT_NONE

To view the source code for org.springframework.jmx.export MBeanExporter AUTODETECT_NONE.

Click Source Link

Document

Autodetection mode indicating that no autodetection should be used.

Usage

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

public void afterPropertiesSet() throws Exception {
    if (this.server == null) {
        this.server = JmxUtils.locateMBeanServer();
    }/*from   w ww . jav  a2  s.  c o  m*/

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