Example usage for org.springframework.jmx.support MBeanServerFactoryBean afterPropertiesSet

List of usage examples for org.springframework.jmx.support MBeanServerFactoryBean afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.jmx.support MBeanServerFactoryBean afterPropertiesSet.

Prototype

@Override
public void afterPropertiesSet() throws MBeanServerNotFoundException 

Source Link

Document

Creates the MBeanServer instance.

Usage

From source file:org.cloudfoundry.identity.statsd.MBeanMapTests.java

@Before
public void start() throws Exception {
    MBeanServerFactoryBean factory = new MBeanServerFactoryBean();
    factory.setLocateExistingServerIfPossible(true);
    factory.afterPropertiesSet();
    server = factory.getObject();/*from  ww  w.j a  va 2s.co  m*/
}

From source file:org.cloudfoundry.identity.uaa.varz.VarzEndpointTests.java

@Before
public void start() throws Exception {
    MBeanServerFactoryBean factory = new MBeanServerFactoryBean();
    factory.setLocateExistingServerIfPossible(true);
    factory.afterPropertiesSet();
    server = factory.getObject();/*from   ww w. j a va 2 s .co  m*/
    endpoint = new VarzEndpoint();
    endpoint.setServer(server);
    request = new MockHttpServletRequest();
    request.setServerPort(80);
    request.setServerName("uaa.vcap.me");
    request.setScheme("http");
}