XMOJO 5 API Docs

javax.management.modelmbean
Class ModelMBeanConstructorInfo

java.lang.Object
  |
  +--javax.management.MBeanFeatureInfo
        |
        +--javax.management.MBeanConstructorInfo
              |
              +--javax.management.modelmbean.ModelMBeanConstructorInfo
All Implemented Interfaces:
java.lang.Cloneable, DescriptorAccess, java.io.Serializable

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 operation

PersistencePolicy and CurrencyTimeLimit fields are not valid for the constructor. The default constructo will have the name, descriptorType, and role fields.

See Also:
Serialized Form

Fields inherited from class javax.management.MBeanFeatureInfo
description, name
 
Constructor Summary
ModelMBeanConstructorInfo(java.lang.String description, java.lang.reflect.Constructor constructor)
          Constructs a MBeanConstructorInfo object with a default descriptor.
ModelMBeanConstructorInfo(java.lang.String description, java.lang.reflect.Constructor constructor, Descriptor descriptor)
          Constructs a MBeanConstructorInfo object with the specified descriptor.
ModelMBeanConstructorInfo(java.lang.String name, java.lang.String description, MBeanParameterInfo[] signature)
          Constructs a MBeanConstructorInfo object with a default descriptor.
ModelMBeanConstructorInfo(java.lang.String name, java.lang.String description, MBeanParameterInfo[] signature, Descriptor descriptor)
          Constructs a MBeanConstructorInfo object with a default descriptor.
 
Method Summary
 java.lang.Object clone()
          Constructs a duplicate copy ModelMBeanConstructorInfo.
 Descriptor getDescriptor()
          Returns the descriptor
 void setDescriptor(Descriptor inDescriptor)
          Sets associated Descriptor of ModelMBeanConstructorInfo.
 java.lang.String toString()
          Returns a human readable version of the ModelMBeanConstructorInfo instance
 
Methods inherited from class javax.management.MBeanConstructorInfo
getSignature
 
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

ModelMBeanConstructorInfo

public ModelMBeanConstructorInfo(java.lang.String description,
                                 java.lang.reflect.Constructor constructor)
Constructs a MBeanConstructorInfo object with a default descriptor.
Parameters:
description - The description of the constructor
constructor - object describing the MBean constructor.

ModelMBeanConstructorInfo

public ModelMBeanConstructorInfo(java.lang.String description,
                                 java.lang.reflect.Constructor constructor,
                                 Descriptor descriptor)
Constructs a MBeanConstructorInfo object with the specified descriptor.
Parameters:
description - The description of the constructor
constructor - object describing the MBean 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.

ModelMBeanConstructorInfo

public ModelMBeanConstructorInfo(java.lang.String name,
                                 java.lang.String description,
                                 MBeanParameterInfo[] signature)
Constructs a MBeanConstructorInfo object with a default descriptor.
Parameters:
name - The name of the constructor
description - The description of the constructor
signature - MBeanParameterInfo object array describing the parameters of the constructor.

ModelMBeanConstructorInfo

public ModelMBeanConstructorInfo(java.lang.String name,
                                 java.lang.String description,
                                 MBeanParameterInfo[] signature,
                                 Descriptor descriptor)
Constructs a MBeanConstructorInfo object with a default descriptor.
Parameters:
name - The name of the constructor
description - The description of the constructor
signature - MBeanParameterInfo object array describing the parameters of the 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.
Method Detail

clone

public java.lang.Object clone()
Constructs a duplicate copy ModelMBeanConstructorInfo.
Overrides:
clone in class MBeanConstructorInfo
Returns:
The duplicate copy of the object is returned.

getDescriptor

public Descriptor getDescriptor()
Returns the descriptor
Specified by:
getDescriptor in interface DescriptorAccess
Returns:
Descriptor associated with the ModelMBeanConstructorInfo object.

setDescriptor

public void setDescriptor(Descriptor inDescriptor)
Sets associated Descriptor 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
Parameters:
inDescriptor - replaces the Descriptor associated with the ModelMBeanConstructor.
Throws:
java.lang.IllegalArgumentException - If the argument passsed in is illegal then this Exception will be thrown

toString

public java.lang.String toString()
Returns a human readable version of the ModelMBeanConstructorInfo instance
Overrides:
toString in class MBeanConstructorInfo
Following copied from class: javax.management.MBeanConstructorInfo
Returns:
String format of MBeanConstructorInfo is returned

XMOJO 5 API Docs

Copyright ©2003 XMOJO.org. All Rights Reserved.