Package org.springframework.jmx.export.naming

Examples of org.springframework.jmx.export.naming.MetadataNamingStrategy


  private StepExecutionMetricsFactory stepExecutionMetricsFactory = new ExecutionMetricsFactory();

  public BatchMBeanExporter() {
    super();
    setAutodetect(false);
    setNamingStrategy(new MetadataNamingStrategy(attributeSource));
    setAssembler(new MetadataMBeanInfoAssembler(attributeSource));
  }
View Full Code Here


    this.context.register(TestConfiguration.class, JmxAutoConfiguration.class);
    this.context.refresh();

    MBeanExporter mBeanExporter = this.context.getBean(MBeanExporter.class);
    assertNotNull(mBeanExporter);
    MetadataNamingStrategy naming = (MetadataNamingStrategy) ReflectionTestUtils
        .getField(mBeanExporter, "metadataNamingStrategy");
    assertEquals("my-test-domain",
        ReflectionTestUtils.getField(naming, "defaultDomain"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.jmx.export.naming.MetadataNamingStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.