| javax.management.MBeanConstructorInfo javax.management.modelmbean.ModelMBeanConstructorInfo
ModelMBeanConstructorInfo | public class ModelMBeanConstructorInfo extends MBeanConstructorInfo implements DescriptorAccess(Code) | | 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
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
default value of the
name and
displayName fields is
the name of the constructor.
The serialVersionUID of this class is 3862947819818064362L .
since: 1.5 |
Method Summary | |
public Object | clone() Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo. | public Descriptor | getDescriptor() Returns a copy of the associated Descriptor. | public void | setDescriptor(Descriptor inDescriptor) Sets associated Descriptor (full replace) of
ModelMBeanConstructorInfo. | public String | toString() Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form. |
ModelMBeanConstructorInfo | public ModelMBeanConstructorInfo(String description, Constructor constructorMethod)(Code) | | Constructs a ModelMBeanConstructorInfo object with a default
descriptor. The
Descriptor of the constructed
object will include fields contributed by any annotations on
the
Constructor object that contain the
DescriptorKey meta-annotation.
Parameters: description - A human readable description of the constructor. Parameters: constructorMethod - The java.lang.reflect.Constructor objectdescribing the MBean constructor. |
ModelMBeanConstructorInfo | public ModelMBeanConstructorInfo(String description, Constructor constructorMethod, Descriptor descriptor)(Code) | | Constructs a ModelMBeanConstructorInfo object. The
Descriptor of the constructed object will include fields
contributed by any annotations on the
Constructor object that contain the
DescriptorKey meta-annotation.
Parameters: description - A human readable description of the constructor. Parameters: constructorMethod - The java.lang.reflect.Constructor objectdescribing the ModelMBean constructor. Parameters: descriptor - An instance of Descriptor containing theappropriate metadata for this instance of theModelMBeanConstructorInfo. If it is null, then a defaultdescriptor will be created. If the descriptor does notcontain all the following fields, the missing ones are added withtheir default values: displayName, name, role, descriptorType. exception: RuntimeOperationsException - Wraps anIllegalArgumentException. The descriptor is invalid, ordescriptor field "name" is present but not equal to nameparameter, or descriptor field "descriptorType" is presentbut not equal to "operation" or descriptor field "role" ispresent but not equal to "constructor". |
ModelMBeanConstructorInfo | public ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature)(Code) | | Constructs a ModelMBeanConstructorInfo object with a default descriptor.
Parameters: name - The name of the constructor. Parameters: description - A human readable description of the constructor. Parameters: signature - MBeanParameterInfo object array describing the parameters(arguments) of the constructor. |
ModelMBeanConstructorInfo | public ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature, Descriptor descriptor)(Code) | | Constructs a ModelMBeanConstructorInfo object.
Parameters: name - The name of the constructor. Parameters: description - A human readable description of the constructor. Parameters: signature - MBeanParameterInfo objects describing the parameters(arguments) of the constructor. Parameters: descriptor - An instance of Descriptor containing the appropriate metadatafor this instance of the MBeanConstructorInfo. If it is null then a default descriptor will be created.If the descriptor does notcontain all the following fields, the missing ones are added withtheir default values: displayName, name, role, descriptorType. exception: RuntimeOperationsException - Wraps anIllegalArgumentException. The descriptor is invalid, ordescriptor field "name" is present but not equal to nameparameter, or descriptor field "descriptorType" is presentbut not equal to "operation" or descriptor field "role" ispresent but not equal to "constructor". |
ModelMBeanConstructorInfo | ModelMBeanConstructorInfo(ModelMBeanConstructorInfo old)(Code) | | Constructs a new ModelMBeanConstructorInfo object from this ModelMBeanConstructor Object.
Parameters: old - the ModelMBeanConstructorInfo to be duplicated |
clone | public Object clone()(Code) | | Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo.
|
setDescriptor | public void setDescriptor(Descriptor inDescriptor)(Code) | | 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 withthe ModelMBeanConstructor. If the descriptor does notcontain all the following fields, the missing ones are added withtheir default values: displayName, name, role, descriptorType. exception: RuntimeOperationsException - Wraps anIllegalArgumentException. The descriptor is invalid, ordescriptor field "name" is present but not equal to nameparameter, or descriptor field "descriptorType" is presentbut not equal to "operation" or descriptor field "role" ispresent but not equal to "constructor". See Also: ModelMBeanConstructorInfo.getDescriptor |
toString | public String toString()(Code) | | Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form.
|
|
|