This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.management.modelmbean
class ModelMBeanConstructorInfo

java.lang.Object extended by javax.management.MBeanFeatureInfo extended by javax.management.MBeanConstructorInfo extended by javax.management.modelmbean.ModelMBeanConstructorInfo
All Implemented Interfaces:
Serializable, Cloneable, DescriptorAccess, DescriptorRead

public class ModelMBeanConstructorInfo
extends MBeanConstructorInfo
implements DescriptorAccess

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 : constructor name descriptorType : must be "operation" role : must be "constructor" displayName : human readable name of constructor visibility : 1-4 where 1: always visible 4: rarely visible presentationString : xml formatted string to describe how to present operation

The {@code persistPolicy} and {@code currencyTimeLimit} fields are meaningless for constructors, but are not considered invalid.

The default descriptor will have the {@code name}, {@code descriptorType}, {@code displayName} and {@code role} fields.

The serialVersionUID of this class is 3862947819818064362L.


Field Summary
 
Fields inherited from class javax.management.MBeanFeatureInfo
description, name
 
Constructor Summary
ModelMBeanConstructorInfo(String description, Constructor constructorMethod)

          Constructs a ModelMBeanConstructorInfo object with a default descriptor.
ModelMBeanConstructorInfo(String description, Constructor constructorMethod, Descriptor descriptor)

          Constructs a ModelMBeanConstructorInfo object.
ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature)

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

          Constructs a ModelMBeanConstructorInfo object.
 
Method Summary
 Object

          Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo.
 Descriptor

          Returns a copy of the associated Descriptor.
 void
setDescriptor(Descriptor inDescriptor)

          Sets associated Descriptor (full replace) of ModelMBeanConstructorInfo.
 String

          Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form.
 
Methods inherited from class javax.management.MBeanConstructorInfo
clone, equals, getSignature, hashCode, toString
 
Methods inherited from class javax.management.MBeanFeatureInfo
equals, getDescription, getDescriptor, getName, hashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelMBeanConstructorInfo

public ModelMBeanConstructorInfo(String description,
                                 Constructor constructorMethod)
Constructs a ModelMBeanConstructorInfo object with a default descriptor. The {@link Descriptor} of the constructed object will include fields contributed by any annotations on the {@code Constructor} object that contain the {@link DescriptorKey} meta-annotation.

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

ModelMBeanConstructorInfo

public ModelMBeanConstructorInfo(String description,
                                 Constructor constructorMethod,
                                 Descriptor descriptor)
Constructs a ModelMBeanConstructorInfo object. The {@link Descriptor} of the constructed object will include fields contributed by any annotations on the {@code Constructor} object that contain the {@link DescriptorKey} meta-annotation.

Parameters:
description - A human readable description of the constructor.
constructorMethod - The java.lang.reflect.Constructor object describing the ModelMBean constructor.
descriptor - An instance of Descriptor containing the appropriate metadata for this instance of the ModelMBeanConstructorInfo. If it is null, then a default descriptor will be created.If the descriptor does not contain the field "displayName" this fields is added in the descriptor with its default value.

ModelMBeanConstructorInfo

public ModelMBeanConstructorInfo(String name,
                                 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.

ModelMBeanConstructorInfo

public ModelMBeanConstructorInfo(String name,
                                 String description,
                                 MBeanParameterInfo[] signature,
                                 Descriptor descriptor)
Constructs a ModelMBeanConstructorInfo object.

Parameters:
name - The name of the constructor.
description - A human readable description of the constructor.
signature - MBeanParameterInfo objects describing the parameters(arguments) of the constructor.
descriptor - An instance of Descriptor containing the appropriate metadata for this instance of the MBeanConstructorInfo. If it is null then a default descriptor will be created. If the descriptor does not contain the field "displayName" this field is added in the descriptor with its default value.
Method Detail

clone

public Object clone()
Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo.

Overrides:
clone in class MBeanConstructorInfo

getDescriptor

public Descriptor getDescriptor()
Returns a copy of the associated Descriptor.

Overrides:
getDescriptor in class MBeanFeatureInfo
Returns:
Descriptor associated with the ModelMBeanConstructorInfo object.

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 a RuntimeOperationsException wrapping an IllegalArgumentException is thrown.

Parameters:
inDescriptor - replaces the Descriptor associated with the ModelMBeanConstructor. If the descriptor does not contain the field "displayName" this field is added in the descriptor with its default value.

toString

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

Overrides:
toString in class MBeanConstructorInfo


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.