javax.management
public class MBeanConstructorInfo extends MBeanFeatureInfo implements Cloneable
Since: 1.5
Constructor Summary | |
---|---|
MBeanConstructorInfo(String desc, Constructor cons)
Constructs a @link{MBeanConstructorInfo} with the specified
description using the given constructor. | |
MBeanConstructorInfo(String name, String desc, MBeanParameterInfo[] sig)
Constructs a @link{MBeanConstructorInfo} with the specified
name, description and parameter information. |
Method Summary | |
---|---|
Object | clone()
Returns a clone of this instance. |
boolean | equals(Object obj)
Compares this feature with the supplied object. |
MBeanParameterInfo[] | getSignature()
Returns the constructor's signature, in the form of
information on each parameter. |
int | hashCode()
Returns the hashcode of the constructor information as the sum
of the hashcode of the superclass and the hashcode of the parameter
array.
|
String | toString() Returns a textual representation of this instance. |
null
.
Parameters: desc a description of the attribute. cons the constructor.
null
value for the parameter information is the same as passing in
an empty array. A copy of the parameter array is taken, so
later changes have no effect.
Parameters: name the name of the constructor. desc a description of the constructor. sig the signature of the constructor, as a series of {@link MBeanParameterInfo} objects, one for each parameter.
Returns: a clone of this instance.
See Also: Cloneable
Parameters: obj the object to compare.
Returns: true if the object is a {@link MBeanConstructorInfo}
instance,
name.equals(object.getName())
,
description.equals(object.getDescription())
and the corresponding elements of the signature arrays are
equal.
Returns: an array of {@link MBeanParameterInfo} objects, describing the constructor parameters.
Returns: the hashcode of the constructor information.
Returns a textual representation of this instance. This
is constructed using the class name
(javax.management.MBeanConstructorInfo
),
the name and description of the constructor and the
contents of the array of parameters.
As instances of this class are immutable, the return value is computed just once for each instance and reused throughout its life.
Returns: a @link{java.lang.String} instance representing the instance in textual form.