Package io.airlift.jmx.testing

Source Code of io.airlift.jmx.testing.TestingJmxModule

package io.airlift.jmx.testing;

import com.google.inject.Binder;
import com.google.inject.Module;
import org.weakref.jmx.testing.TestingMBeanServer;

import javax.management.MBeanServer;

public class TestingJmxModule
        implements Module
{
    @Override
    public void configure(Binder binder)
    {
        binder.disableCircularProxies();

        binder.bind(MBeanServer.class).toInstance(new TestingMBeanServer());
    }
}
TOP

Related Classes of io.airlift.jmx.testing.TestingJmxModule

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.