From ad8325e616f400131fee4279a658ad75953b6fe9 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 29 Apr 2009 14:42:42 -0700 Subject: [PATCH] remove MBeanConstructorInfo --- .../src/org/hyperic/sigar/jmx/SigarRegistry.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/bindings/java/src/org/hyperic/sigar/jmx/SigarRegistry.java b/bindings/java/src/org/hyperic/sigar/jmx/SigarRegistry.java index f055b0aa..b13d8274 100644 --- a/bindings/java/src/org/hyperic/sigar/jmx/SigarRegistry.java +++ b/bindings/java/src/org/hyperic/sigar/jmx/SigarRegistry.java @@ -21,9 +21,7 @@ package org.hyperic.sigar.jmx; import java.util.ArrayList; import javax.management.AttributeNotFoundException; -import javax.management.MBeanConstructorInfo; import javax.management.MBeanInfo; -import javax.management.MBeanParameterInfo; import javax.management.MBeanServer; import javax.management.ObjectInstance; import javax.management.ObjectName; @@ -31,7 +29,6 @@ import javax.management.ObjectName; import org.hyperic.sigar.CpuInfo; import org.hyperic.sigar.FileSystem; import org.hyperic.sigar.NetInterfaceConfig; -import org.hyperic.sigar.Sigar; import org.hyperic.sigar.SigarException; import org.hyperic.sigar.SigarProxy; @@ -66,15 +63,7 @@ public class SigarRegistry extends AbstractMBean { private static final MBeanInfo MBEAN_INFO; - private static final MBeanConstructorInfo MBEAN_CONSTR_DEFAULT; - static { - MBEAN_CONSTR_DEFAULT = new MBeanConstructorInfo( - SigarRegistry.class.getName(), - "Creates a new instance of this class. Will create the Sigar " - + "instance this class uses when constructing other MBeans", - new MBeanParameterInfo[0]); - MBEAN_INFO = new MBeanInfo( SigarRegistry.class.getName(), "Sigar MBean registry. Provides a central point for creation " @@ -82,7 +71,7 @@ public class SigarRegistry extends AbstractMBean { + "this instance will automatically be cleaned up when this " + "instance is deregistered from the MBean server.", null /*new MBeanAttributeInfo[0] */, - new MBeanConstructorInfo[] { MBEAN_CONSTR_DEFAULT }, + null /*new MBeanConstructorInfo[0]*/, null /*new MBeanOperationInfo[0] */, null /*new MBeanNotificationInfo[0]*/); }