java.lang.Object
javax.management.MBeanInfo
javax.management.openmbean.OpenMBeanInfoSupport
- All Implemented Interfaces:
- java.lang.Cloneable, OpenMBeanInfo, java.io.Serializable
- public class OpenMBeanInfoSupport
- extends javax.management.MBeanInfo
- implements OpenMBeanInfo, java.io.Serializable
OpenMBeanInfo implementation
- Version:
- $Revision: 1.1.2.1 $
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
cachedHashCode
private transient int cachedHashCode
cachedToString
private transient java.lang.String cachedToString
OpenMBeanInfoSupport
public OpenMBeanInfoSupport(java.lang.String className,
java.lang.String description,
OpenMBeanAttributeInfo[] attributes,
OpenMBeanConstructorInfo[] constructors,
OpenMBeanOperationInfo[] operations,
javax.management.MBeanNotificationInfo[] notifications)
- Contruct an OpenMBeanInfoSupport
convertArray
private static javax.management.MBeanAttributeInfo[] convertArray(OpenMBeanAttributeInfo[] array)
convertArray
private static javax.management.MBeanConstructorInfo[] convertArray(OpenMBeanConstructorInfo[] array)
convertArray
private static javax.management.MBeanOperationInfo[] convertArray(OpenMBeanOperationInfo[] array)
equals
public boolean equals(java.lang.Object obj)
- Description copied from interface:
OpenMBeanInfo
- Compares an object for equality with the implementing class.
The object is not null
The object implements the open mbean info interface
The getClassName() methods return strings that are equal
The information objects (attributes, constructors, operations and
notifications) are the equal
- Specified by:
equals in interface OpenMBeanInfo
hashCode
public int hashCode()
- Description copied from interface:
OpenMBeanInfo
- Generates a hashcode for the implementation.
The hashcode is the sum of the hashcodes for
getClassName()
java.util.HashSet(java.util.Arrays.asList(getAttributes()).hashCode()
java.util.HashSet(java.util.Arrays.asList(getConstructors()).hashCode()
java.util.HashSet(java.util.Arrays.asList(getOperations()).hashCode()
java.util.HashSet(java.util.Arrays.asList(getNotifications()).hashCode()
- Specified by:
hashCode in interface OpenMBeanInfo
toString
public java.lang.String toString()
- Description copied from interface:
OpenMBeanInfo
- A string representation of the open mbean info.
It is made up of
The implementing class
getClassName()
toString() for each of the info arrays
- Specified by:
toString in interface OpenMBeanInfo
compareArray
private boolean compareArray(java.lang.Object[] one,
java.lang.Object[] two)