javax.management.openmbean
Class OpenMBeanConstructorInfoSupport

java.lang.Object
  extended byjavax.management.MBeanFeatureInfo (src) 
      extended byjavax.management.MBeanConstructorInfo (src) 
          extended byjavax.management.openmbean.OpenMBeanConstructorInfoSupport
All Implemented Interfaces:
java.lang.Cloneable, OpenMBeanConstructorInfo (src) , java.io.Serializable

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

OpenMBeanConstructorInfo implementation

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.MBeanFeatureInfo (src)
description, name
 
Constructor Summary
OpenMBeanConstructorInfoSupport(java.lang.String name, java.lang.String description, OpenMBeanParameterInfo (src) [] signature)
          Contruct an OpenMBeanConstructorInfoSupport
 
Method Summary
 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 constructor info.
 
Methods inherited from class javax.management.MBeanConstructorInfo (src)
clone, getSignature
 
Methods inherited from class javax.management.MBeanFeatureInfo (src)
getDescription, getName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.openmbean.OpenMBeanConstructorInfo (src)
getDescription, getName, getSignature
 

Constructor Detail

OpenMBeanConstructorInfoSupport

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

Parameters:
name - cannot be null or empty
description - cannot be null or empty
signature - the parameters of the constructor
Throws:
java.lang.IllegalArgumentException - when one of the above constraints is not satisfied
Method Detail

equals

public boolean equals(java.lang.Object obj)
Description copied from interface: OpenMBeanConstructorInfo (src)
Compares an object for equality with the implementing class.

The object is not null
The object implements the open mbean constructor info interface
The constructor names are equal
The signatures are equal

Specified by:
equals in interface OpenMBeanConstructorInfo (src)
Overrides:
equals in class MBeanConstructorInfo (src)

hashCode

public int hashCode()
Description copied from interface: OpenMBeanConstructorInfo (src)
Generates a hashcode for the implementation.

The sum of the hashCodes for the elements mentioned in the equals method

Specified by:
hashCode in interface OpenMBeanConstructorInfo (src)
Overrides:
hashCode in class MBeanConstructorInfo (src)

toString

public java.lang.String toString()
Description copied from interface: OpenMBeanConstructorInfo (src)
A string representation of the open mbean constructor info.

It is made up of implementation class and the values mentioned in the equals method

Specified by:
toString in interface OpenMBeanConstructorInfo (src)
Overrides:
toString in class MBeanConstructorInfo (src)
Returns:
a human readable string