javax.management.openmbean
Class OpenMBeanConstructorInfoSupport

java.lang.Object
  |
  +--javax.management.MBeanFeatureInfo
        |
        +--javax.management.MBeanConstructorInfo
              |
              +--javax.management.openmbean.OpenMBeanConstructorInfoSupport
All Implemented Interfaces:
java.lang.Cloneable, OpenMBeanConstructorInfo, java.io.Serializable

public class OpenMBeanConstructorInfoSupport
extends MBeanConstructorInfo
implements OpenMBeanConstructorInfo, java.io.Serializable

Describes a constructor of an openMBean

See Also:
Serialized Form

Constructor Summary
OpenMBeanConstructorInfoSupport(java.lang.String name, java.lang.String description, OpenMBeanParameterInfo[] signature)
          Constructs an OpenMBeanConstructorInfoSupport instance, which describes the constructor of a class of open MBeans with the specified name, description and signature The signature array parameter is internally copied, so that subsequent changes to the array referenced by signature have no effect on this instance
 
Method Summary
 boolean equals(java.lang.Object obj)
          Tests if the object given in the parameter is equal to this instance
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class javax.management.MBeanConstructorInfo
getSignature
 
Methods inherited from class javax.management.MBeanFeatureInfo
clone, getDescription, getName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.openmbean.OpenMBeanConstructorInfo
getDescription, getName, getSignature
 

Constructor Detail

OpenMBeanConstructorInfoSupport

public OpenMBeanConstructorInfoSupport(java.lang.String name,
                                       java.lang.String description,
                                       OpenMBeanParameterInfo[] signature)

Constructs an OpenMBeanConstructorInfoSupport instance, which describes the constructor of a class of open MBeans with the specified name, description and signature

The signature array parameter is internally copied, so that subsequent changes to the array referenced by signature have no effect on this instance

Parameters:
name - - cannot be a null or empty string
description - - cannot be a null or empty string
signature - - can be null or empty if there are no parameters to describe
Throws:
java.lang.IllegalArgumentException - - if name or description are null or empty string
ArrayStoreException - - If signature is not an array of instances of a subclass of MBeanParameterInfo
Method Detail

equals

public boolean equals(java.lang.Object obj)
Tests if the object given in the parameter is equal to this instance
Specified by:
equals in interface OpenMBeanConstructorInfo
Overrides:
equals in class MBeanConstructorInfo
Parameters:
obj - the object to test for equality
Returns:
true if equals false otherwise

hashCode

public int hashCode()
Specified by:
hashCode in interface OpenMBeanConstructorInfo
Overrides:
hashCode in class MBeanConstructorInfo
Returns:
the calculated hashCode for this instance. The same values tested for in equals are used to calculate the hashCode

toString

public java.lang.String toString()
Specified by:
toString in interface OpenMBeanConstructorInfo
Overrides:
toString in class java.lang.Object
Returns:
the human readable representation of this instance


Copyright © 2001-2002 MX4J Team. All Rights Reserved.