MX4JDynamicMBean.java :  » Inversion-of-Control » PicoContainer » org » picocontainer » gems » jmx » mx4j » Java Open Source

Java Open Source » Inversion of Control » PicoContainer 
PicoContainer » org » picocontainer » gems » jmx » mx4j » MX4JDynamicMBean.java
/*****************************************************************************
 * Copyright (C) NanoContainer Organization. All rights reserved.            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *                                                                           *
 * Original code by James Strachan                                           *
 *****************************************************************************/
package org.picocontainer.gems.jmx.mx4j;

import javax.management.MBeanInfo;

import mx4j.AbstractDynamicMBean;


/**
 * DynamicMBean implementation based on MX4J.
 * @author James Strachan
 * @author Michael Ward
 * @version $Revision: 3905 $
 */
public class MX4JDynamicMBean extends AbstractDynamicMBean {

    /**
     * Construct a MBean from an instance and a MBeanInfo.
     * @param componentInstance the instance to expose.
     * @param mBeanInfo the MBeanInfo for the instance.
     */
    public MX4JDynamicMBean(Object componentInstance, MBeanInfo mBeanInfo) {
        setResource(componentInstance);
        setMBeanInfo(mBeanInfo);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.