javax.management
Class MBeanConstructorInfo

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo 
      extended by javax.management.MBeanConstructorInfo
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable
Direct Known Subclasses:
ModelMBeanConstructorInfo sample code for javax.management.modelmbean.ModelMBeanConstructorInfo definition code for javax.management.modelmbean.ModelMBeanConstructorInfo , OpenMBeanConstructorInfoSupport sample code for javax.management.openmbean.OpenMBeanConstructorInfoSupport definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport

public class MBeanConstructorInfo
extends MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

Describes a constructor exposed by an MBean. Instances of this class are immutable. Subclasses may be mutable but this is not recommended.

Since:
1.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
description sample code for javax.management.MBeanFeatureInfo.description definition code for javax.management.MBeanFeatureInfo.description , name sample code for javax.management.MBeanFeatureInfo.name definition code for javax.management.MBeanFeatureInfo.name
 
Constructor Summary
MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo.MBeanConstructorInfo(java.lang.String, java.lang.reflect.Constructor) definition code for javax.management.MBeanConstructorInfo.MBeanConstructorInfo(java.lang.String, java.lang.reflect.Constructor) (String sample code for java.lang.String definition code for java.lang.String  description, Constructor sample code for java.lang.reflect.Constructor definition code for java.lang.reflect.Constructor  constructor)
          Constructs an MBeanConstructorInfo object.
MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo.MBeanConstructorInfo(java.lang.String, java.lang.String, javax.management.MBeanParameterInfo[]) definition code for javax.management.MBeanConstructorInfo.MBeanConstructorInfo(java.lang.String, java.lang.String, javax.management.MBeanParameterInfo[]) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  description, MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo [] signature)
          Constructs an MBeanConstructorInfo object.
 
Method Summary
 Object sample code for java.lang.Object definition code for java.lang.Object clone sample code for javax.management.MBeanConstructorInfo.clone() definition code for javax.management.MBeanConstructorInfo.clone() ()
          Returns a shallow clone of this instance.
 boolean equals sample code for javax.management.MBeanConstructorInfo.equals(java.lang.Object) definition code for javax.management.MBeanConstructorInfo.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  o)
          Compare this MBeanConstructorInfo to another.
 MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo [] getSignature sample code for javax.management.MBeanConstructorInfo.getSignature() definition code for javax.management.MBeanConstructorInfo.getSignature() ()
          Returns the list of parameters for this constructor.
 int hashCode sample code for javax.management.MBeanConstructorInfo.hashCode() definition code for javax.management.MBeanConstructorInfo.hashCode() ()
          Returns a hash code value for the object.
 
Methods inherited from class javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
getDescription sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription() , getName sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo(java.lang.String, java.lang.reflect.Constructor) definition code for javax.management.MBeanConstructorInfo(java.lang.String, java.lang.reflect.Constructor)

public MBeanConstructorInfo(String sample code for java.lang.String definition code for java.lang.String  description,
                            Constructor sample code for java.lang.reflect.Constructor definition code for java.lang.reflect.Constructor  constructor)
Constructs an MBeanConstructorInfo object.

Parameters:
description - A human readable description of the operation.
constructor - The java.lang.reflect.Constructor object describing the MBean constructor.

MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo(java.lang.String, java.lang.String, javax.management.MBeanParameterInfo[]) definition code for javax.management.MBeanConstructorInfo(java.lang.String, java.lang.String, javax.management.MBeanParameterInfo[])

public MBeanConstructorInfo(String sample code for java.lang.String definition code for java.lang.String  name,
                            String sample code for java.lang.String definition code for java.lang.String  description,
                            MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo [] signature)
                     throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException 
Constructs an MBeanConstructorInfo object.

Parameters:
name - The name of the constructor.
signature - MBeanParameterInfo objects describing the parameters(arguments) of the constructor. This may be null with the same effect as a zero-length array.
description - A human readable description of the constructor.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException
Method Detail

clone sample code for javax.management.MBeanConstructorInfo.clone() definition code for javax.management.MBeanConstructorInfo.clone()

public Object sample code for java.lang.Object definition code for java.lang.Object  clone()

Returns a shallow clone of this instance. The clone is obtained by simply calling super.clone(), thus calling the default native shallow cloning mechanism implemented by Object.clone(). No deeper cloning of any internal field is made.

Since this class is immutable, cloning is chiefly of interest to subclasses.

Overrides:
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a clone of this instance.
See Also:
Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

getSignature sample code for javax.management.MBeanConstructorInfo.getSignature() definition code for javax.management.MBeanConstructorInfo.getSignature()

public MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo [] getSignature()

Returns the list of parameters for this constructor. Each parameter is described by an MBeanParameterInfo object.

The returned array is a shallow copy of the internal array, which means that it is a copy of the internal array of references to the MBeanParameterInfo objects but that each referenced MBeanParameterInfo object is not copied.

Returns:
An array of MBeanParameterInfo objects.

equals sample code for javax.management.MBeanConstructorInfo.equals(java.lang.Object) definition code for javax.management.MBeanConstructorInfo.equals(java.lang.Object)

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  o)
Compare this MBeanConstructorInfo to another.

Overrides:
equals sample code for javax.management.MBeanFeatureInfo.equals(java.lang.Object) definition code for javax.management.MBeanFeatureInfo.equals(java.lang.Object) in class MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
Parameters:
o - the object to compare to.
Returns:
true iff o is an MBeanConstructorInfo such that its MBeanFeatureInfo.getName() sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName() , MBeanFeatureInfo.getDescription() sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription() , and getSignature() sample code for javax.management.MBeanConstructorInfo.getSignature() definition code for javax.management.MBeanConstructorInfo.getSignature() values are equal (not necessarily identical) to those of this MBeanConstructorInfo. Two signature arrays are equal if their elements are pairwise equal.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for javax.management.MBeanConstructorInfo.hashCode() definition code for javax.management.MBeanConstructorInfo.hashCode()

public int hashCode()
Description copied from class: Object sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

The general contract of hashCode is:

As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)

Overrides:
hashCode sample code for javax.management.MBeanFeatureInfo.hashCode() definition code for javax.management.MBeanFeatureInfo.hashCode() in class MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable