Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.management.openmbean
Class OpenMBeanInfoSupport  view OpenMBeanInfoSupport download OpenMBeanInfoSupport.java

java.lang.Object
  extended byjavax.management.MBeanInfo
      extended byjavax.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 $

Field Summary
private  int cachedHashCode
           
private  java.lang.String cachedToString
           
private static long serialVersionUID
           
 
Fields inherited from class javax.management.MBeanInfo
attributes, className, constructors, description, notifications, operations
 
Constructor Summary
OpenMBeanInfoSupport(java.lang.String className, java.lang.String description, OpenMBeanAttributeInfo[] attributes, OpenMBeanConstructorInfo[] constructors, OpenMBeanOperationInfo[] operations, javax.management.MBeanNotificationInfo[] notifications)
          Contruct an OpenMBeanInfoSupport
 
Method Summary
private  boolean compareArray(java.lang.Object[] one, java.lang.Object[] two)
           
private static javax.management.MBeanAttributeInfo[] convertArray(OpenMBeanAttributeInfo[] array)
           
private static javax.management.MBeanConstructorInfo[] convertArray(OpenMBeanConstructorInfo[] array)
           
private static javax.management.MBeanOperationInfo[] convertArray(OpenMBeanOperationInfo[] array)
           
 boolean equals(java.lang.Object obj)
          Compares an object for equality with the implementing class.
 int hashCode()
          Generates a hashcode for the implementation.
 java.lang.String toString()
          A string representation of the open mbean info.
 
Methods inherited from class javax.management.MBeanInfo
clone, getAttributes, getClassName, getConstructors, getDescription, getNotifications, getOperations
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.openmbean.OpenMBeanInfo
getAttributes, getClassName, getConstructors, getDescription, getNotifications, getOperations
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

cachedHashCode

private transient int cachedHashCode

cachedToString

private transient java.lang.String cachedToString
Constructor Detail

OpenMBeanInfoSupport

public OpenMBeanInfoSupport(java.lang.String className,
                            java.lang.String description,
                            OpenMBeanAttributeInfo[] attributes,
                            OpenMBeanConstructorInfo[] constructors,
                            OpenMBeanOperationInfo[] operations,
                            javax.management.MBeanNotificationInfo[] notifications)
Contruct an OpenMBeanInfoSupport

Method Detail

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)