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. Note that when the Type in this table is Number, a String that is the decimal representation of a Long can also be used.
| Name | Type | Meaning |
|---|---|---|
| name | String | Constructor name. |
| descriptorType | String | Must be "operation". |
| role | String | Must be "constructor". |
| displayName | String | Human readable name of constructor. |
| visibility | Number | 1-4 where 1: always visible 4: rarely visible. |
| presentationString | String | XML formatted string to describe how to present operation |
The persistPolicy and currencyTimeLimit fields
are meaningless for constructors, but are not considered invalid.
The default descriptor will have the name, descriptorType, displayName and role fields.
The serialVersionUID of this class is 3862947819818064362L.
| Modifier and Type | Field and Description |
|---|---|
| private Descriptor | |
| private static final String | |
| private static final ObjectStreamField[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | ModelMBeanConstructorInfo(String
A human readable description of the constructor. description, Constructor<?> The java.lang.reflect.Constructor object
describing the MBean constructor. constructorMethod)Constructs a ModelMBeanConstructorInfo object with a default descriptor. |
| public | ModelMBeanConstructorInfo(String
A human readable description of the constructor. description, Constructor<?> The java.lang.reflect.Constructor object
describing the ModelMBean constructor. constructorMethod, 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 field is added in the
descriptor with its default value. descriptor)Constructs a ModelMBeanConstructorInfo object. |
| public | ModelMBeanConstructorInfo(String
The name of the constructor. name, String A human readable description of the constructor. description, MBeanParameterInfo[] MBeanParameterInfo object array describing the parameters(arguments) of the constructor. signature)Constructs a ModelMBeanConstructorInfo object with a default descriptor. |
| public | ModelMBeanConstructorInfo(String
The name of the constructor. name, String A human readable description of the constructor. description, MBeanParameterInfo[] MBeanParameterInfo objects describing the parameters(arguments) of the constructor. signature, 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. descriptor)Constructs a ModelMBeanConstructorInfo object. |
| pack-priv | ModelMBeanConstructorInfo(ModelMBeanConstructorInfo
the ModelMBeanConstructorInfo to be duplicated old)Constructs a new ModelMBeanConstructorInfo object from this ModelMBeanConstructor Object. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides javax. Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo. |
| public Descriptor | Returns: Descriptor associated with the ModelMBeanConstructorInfo object.Overrides javax. Implements javax. Returns a copy of the associated Descriptor. |
| private void | readObject(ObjectInputStream in)
Hides javax. Deserializes a |
| public void | setDescriptor(Descriptor
replaces the Descriptor associated with
the ModelMBeanConstructor. If the descriptor does not
contain all the following fields, the missing ones are added with
their default values: displayName, name, role, descriptorType. inDescriptor)Implements javax. Sets associated Descriptor (full replace) of ModelMBeanConstructorInfo. |
| public String | toString()
Overrides javax. Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form. |
| private Descriptor | validDescriptor(final Descriptor
Descriptor to be checked, or null which is equivalent to
an empty Descriptor. in)Clones the passed in Descriptor, sets default values, and checks for validity. |
| private void | writeObject(ObjectOutputStream out)
Hides javax. Serializes a |
| consDescriptor | back to summary |
|---|---|
| private Descriptor consDescriptor | |
| currClass | back to summary |
|---|---|
| private static final String currClass | |
| serialPersistentFields | back to summary |
|---|---|
private static final ObjectStreamField[] serialPersistentFields
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. | |
| ModelMBeanConstructorInfo | back to summary |
|---|---|
| public ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod) Constructs a ModelMBeanConstructorInfo object with a default
descriptor. The
| |
| ModelMBeanConstructorInfo | back to summary |
|---|---|
| public ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod, Descriptor descriptor) Constructs a ModelMBeanConstructorInfo object. The
| |
| ModelMBeanConstructorInfo | back to summary |
|---|---|
| public ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature) Constructs a ModelMBeanConstructorInfo object with a default descriptor.
| |
| ModelMBeanConstructorInfo | back to summary |
|---|---|
| public ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature, Descriptor descriptor) Constructs a ModelMBeanConstructorInfo object.
| |
| ModelMBeanConstructorInfo | back to summary |
|---|---|
| pack-priv ModelMBeanConstructorInfo(ModelMBeanConstructorInfo old) Constructs a new ModelMBeanConstructorInfo object from this ModelMBeanConstructor Object.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides javax. Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo.
| |
| getDescriptor | back to summary |
|---|---|
| public Descriptor getDescriptor() Overrides javax. Implements javax. Returns a copy of the associated Descriptor.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException Hides javax. Deserializes a | |
| setDescriptor | back to summary |
|---|---|
| public void setDescriptor(Descriptor inDescriptor) Implements javax. 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides javax. Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form.
| |
| validDescriptor | back to summary |
|---|---|
| private Descriptor validDescriptor(final Descriptor in) throws RuntimeOperationsException Clones the passed in Descriptor, sets default values, and checks for validity. If the Descriptor is invalid (for instance by having the wrong "name"), this indicates programming error and a RuntimeOperationsException will be thrown. The following fields will be defaulted if they are not already set: displayName=this.getName(), name=this.getName(), descriptorType="operation", role="constructor"
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException Hides javax. Serializes a | |