javax.management.openmbean
Interface OpenMBeanConstructorInfo

All Known Implementing Classes:
OpenMBeanConstructorInfoSupport

public interface OpenMBeanConstructorInfo

An open MBean constructor info implements this interface as well as extending MBeanConstructorInfo.

OpenMBeanConstructorInfoSupport is an example of such a class.

Version:
$Revision: 57200 $
Author:
Adrian Brock.

Method Summary
 boolean equals(Object obj)
          Compares an object for equality with the implementing class.
 String getDescription()
          Retrieve a human readable description of the open MBean constructor the implementation of this interface describes.
 String getName()
          Retrieve the name of the constructor described.
 MBeanParameterInfo[] getSignature()
          Returns an array of the parameters passed to the constructor
 int hashCode()
          Generates a hashcode for the implementation.
 String toString()
          A string representation of the open mbean constructor info.
 

Method Detail

getDescription

String getDescription()
Retrieve a human readable description of the open MBean constructor the implementation of this interface describes.

Returns:
the description.

getName

String getName()
Retrieve the name of the constructor described.

Returns:
the name.

getSignature

MBeanParameterInfo[] getSignature()
Returns an array of the parameters passed to the constructor

The parameters must be OpenMBeanParameterInfos.

Returns:
the constructor's parameters.

equals

boolean equals(Object obj)
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

Overrides:
equals in class Object
Parameters:
obj - the object to test
Returns:
true when above is true, false otherwise

hashCode

int hashCode()
Generates a hashcode for the implementation.

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

Overrides:
hashCode in class Object
Returns:
the calculated hashcode

toString

String toString()
A string representation of the open mbean constructor info.

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

Overrides:
toString in class Object
Returns:
the string


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.