001    /*
002     * Copyright 2010-2011 Ning, Inc.
003     *
004     * Ning licenses this file to you under the Apache License, version 2.0
005     * (the "License"); you may not use this file except in compliance with the
006     * License.  You may obtain a copy of the License at:
007     *
008     *    http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
012     * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
013     * License for the specific language governing permissions and limitations
014     * under the License.
015     */
016    
017    package com.ning.metrics.eventtracker;
018    
019    import com.google.inject.AbstractModule;
020    
021    /**
022     * Expose JMX properties for the eventtracker library.
023     * <p/>
024     * To enable them, install this module and configure jmxutils:
025     * install(new MBeanModule());
026     * // MBeanModule expects an MBeanServer to be bound, e.g. make sure to:
027     * binder().bind(MBeanServer.class).toInstance(ManagementFactory.getPlatformMBeanServer());
028     */
029    public class CollectorControllerHttpMBeanModule extends AbstractModule
030    {
031        @Override
032        protected void configure()
033        {
034            install(new CollectorControllerMBeanModule());
035        }
036    }