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.
Throws:
-
RuntimeOperationsException - Wraps an
IllegalArgumentException. The descriptor is invalid, or
descriptor field "name" is not equal to name parameter, or
descriptor field "DescriptorType" is not equal to
"operation" or descriptor field "role" is not equal to
"constructor".
See Also:
ModelMBeanConstructorInfo.getDescriptor()
,