01: /*****************************************************************************
02: * Copyright (C) NanoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: * Original code by James Strachan *
09: *****************************************************************************/package org.picocontainer.gems.jmx.mx4j;
10:
11: import javax.management.MBeanInfo;
12:
13: import mx4j.AbstractDynamicMBean;
14:
15: /**
16: * DynamicMBean implementation based on MX4J.
17: * @author James Strachan
18: * @author Michael Ward
19: * @version $Revision: 3905 $
20: */
21: public class MX4JDynamicMBean extends AbstractDynamicMBean {
22:
23: /**
24: * Construct a MBean from an instance and a MBeanInfo.
25: * @param componentInstance the instance to expose.
26: * @param mBeanInfo the MBeanInfo for the instance.
27: */
28: public MX4JDynamicMBean(Object componentInstance,
29: MBeanInfo mBeanInfo) {
30: setResource(componentInstance);
31: setMBeanInfo(mBeanInfo);
32: }
33: }
|