Package org.springframework.jmx.export

Examples of org.springframework.jmx.export.MBeanExporter.afterPropertiesSet()


    Map beans = new HashMap();
    beans.put(OBJECT_NAME, target);
    adapter.setServer(getServer());
    adapter.setBeans(beans);
    adapter.setAssembler(new ProxyTestAssembler());
    adapter.afterPropertiesSet();
  }

  protected MBeanServerConnection getServerConnection() throws Exception {
    return getServer();
  }
View Full Code Here


    String objectName = "spring:bean=test,proxy=true";

    Map beans = new HashMap();
    beans.put(objectName, proxy);
    exporter.setBeans(beans);
    exporter.afterPropertiesSet();

    MBeanInfo inf = getServer().getMBeanInfo(ObjectNameManager.getInstance(objectName));
    assertEquals("Incorrect number of operations", getExpectedOperationCount(), inf.getOperations().length);
    assertEquals("Incorrect number of attributes", getExpectedAttributeCount(), inf.getAttributes().length);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.