javax.management.modelmbean
Class ModelMBeanConstructorInfo

java.lang.Objec
  |
  +--javax.management.MBeanFeatureInfo
        |
        +--javax.management.MBeanConstructorInfo
              |
              +--

javax.management.modelmbean.ModelMBeanConstructorInfo


public class

ModelMBeanConstructorInfo

extends MBeanConstructorInfo
implements DescriptorAccess, java.lang.Cloneable

The ModelMBeanConstructorInfo object describes a constructor of the ModelMBean. It is a subclass of MBeanConstructorInfo with the addition of an associated Descriptor and an implementation of the DescriptorAccess interface.

The fields in the descriptor are defined, but not limited to, the following:

 name           : operation name
 descriptorType : must be "operation"
 role           : must be "constructor"
 displayName    : human readable name of constructor
 class          : class where method is defined (fully qualified)
 visibility            : 1-4 where 1: always visible 4: rarely visible
 presentationString :  xml formatted string to describe how to present

Version:

1.9

Author:

Massimo Tarquini, Marco De Gregorio, Max Parlione

See Also:

Serialized Form


MBeanFeatureInfo">

Fields inherited from class javax.management.MBeanFeatureInfo

description, name
 

Constructor Summary

java.lang.String, java.lang.reflect.Constructor)">ModelMBeanConstructorInfo(java.lang.String description, java.lang.reflect.Constructor constructorMethod)
Constructs a MBeanConstructorInfo object with a default descriptor.
java.lang.String, java.lang.reflect.Constructor, javax.management.Descriptor)">ModelMBeanConstructorInfo(java.lang.String description, java.lang.reflect.Constructor constructorMethod, Descriptor descriptor)
Constructs a MBeanConstructorInfo object.
java.lang.String, java.lang.String, javax.management.MBeanParameterInfo[])">ModelMBeanConstructorInfo(java.lang.String name, java.lang.String description, MBeanParameterInfo[] signature)
Constructs a ModelMBeanConstructorInfo object with a default descriptor.
java.lang.String, java.lang.String, javax.management.MBeanParameterInfo[], javax.management.Descriptor)">ModelMBeanConstructorInfo(java.lang.String name, java.lang.String description, MBeanParameterInfo[] signature, Descriptor descriptor)
Constructs a MBeanConstructorInfo object.
 

Method Summary

 java.lang.Object clone()
Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo.
 Descriptor getDescriptor()
Returns a copy of the associated Descriptor Specified by: getDescriptor in interface DescriptorAccess
 void javax.management.Descriptor)">setDescriptor(Descriptor inDescriptor)
Sets associated Descriptor (full replace) of ModelMBeanConstructorInfo.
 java.lang.String toString()
Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form.
 MBeanConstructorInfo">

Methods inherited from class javax.management.MBeanConstructorInfo

getSignature
 MBeanFeatureInfo">

Methods inherited from class javax.management.MBeanFeatureInfo

getDescription, getName
 

Methods inherited from class java.lang.Object

equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

java.lang.String, java.lang.reflect.Constructor)">

 

ModelMBeanConstructorInfo

public 

ModelMBeanConstructorInfo

(java.lang.String description, java.lang.reflect.Constructor constructorMethod)
Constructs a MBeanConstructorInfo object with a default descriptor.

Parameters:

description - A human readable description of the constructor.
method - The java.lang.reflect.Method object describing the MBean constructor.


java.lang.String, java.lang.reflect.Constructor, javax.management.Descriptor)">

 

ModelMBeanConstructorInfo

public 

ModelMBeanConstructorInfo

(java.lang.String description, java.lang.reflect.Constructor constructorMethod, Descriptor descriptor)
Constructs a MBeanConstructorInfo object.

Parameters:

description - A human readable description of the constructor.
method - The java.lang.reflect.Method object describing the ModelMBean constructor.
descriptor - An instance of Descriptor containing the appropriate metadata for this instance of the ModelMBeanConstructorInfo. If it is null or invalid then a default desriptor will be created.


java.lang.String, java.lang.String, javax.management.MBeanParameterInfo[])">

 

ModelMBeanConstructorInfo

public 

ModelMBeanConstructorInfo

(java.lang.String name, java.lang.String description, MBeanParameterInfo[] signature)
Constructs a ModelMBeanConstructorInfo object with a default descriptor.

Parameters:

name - The name of the constructor.
description - A human readable description of the constructor.
signature - MBeanParameterInfo object array describing the parameters(arguments) of the constructor.


java.lang.String, java.lang.String, javax.management.MBeanParameterInfo[], javax.management.Descriptor)">

 

ModelMBeanConstructorInfo

public 

ModelMBeanConstructorInfo

(java.lang.String name, java.lang.String description, MBeanParameterInfo[] signature, Descriptor descriptor)
Constructs a MBeanConstructorInfo object.

Method Detail

 

clone

public java.lang.Object 

clone

()
Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo. Overrides: clone in class MBeanConstructorInfo

Overrides:

clone in class MBeanConstructorInfo


 

getDescriptor

public Descriptor 

getDescriptor

()
Returns a copy of the associated Descriptor Specified by: getDescriptor in interface DescriptorAccess

Specified by:

getDescriptor in interface DescriptorAccess

Returns:

Descriptor associated with the ModelMBeanConstructorInfo object.


javax.management.Descriptor)">

 

setDescriptor

public void 

setDescriptor

(Descriptor inDescriptor)
Sets associated Descriptor (full replace) of ModelMBeanConstructorInfo. If the new Descriptor is null, then the associated Descriptor reverts to a default descriptor. The Descriptor is validated before it is assigned. If the new Descriptor is invalid, then an IllegalArgumentException is thrown. Specified by: setDescriptor in interface DescriptorAccess

Specified by:

javax.management.Descriptor)">setDescriptor in interface DescriptorAccess

Parameters:

Descriptor - inDescriptor replaces the Descriptor associated with the ModelMBeanConstructor.

Throws:

java.lang.IllegalArgumentException - if passed Descriptor is invalid


 

toString

public java.lang.String 

toString

()
Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form.

Overrides:

toString in class java.lang.Object