| 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.management.MBeanFeatureInfo
javax.management.MBeanConstructorInfo
javax.management.modelmbean.ModelMBeanConstructorInfo
public class ModelMBeanConstructorInfo
ModelMBeanConstructorInfo 对象描述了 ModelMBean 的一个构造方法。它是 MBeanConstructorInfo 的一个子类,添加了关联 Descriptor 和 DescriptorAccess 接口实现。
描述符中的字段定义如下,但不限于此:persistPolicy 和 currencyTimeLimit 字段对于该构造方法无效。默认的描述符包含 name、descriptorType、displayName 和 role 字段。name : 构造方法名称 descriptorType : 必须为 "operation" role : 必须为 "constructor" displayName : 构造方法的可读名称 visibility : 1-4,其中 1:总是可见;4:几乎不可见 presentationString : 描述如何呈现操作的 xml 格式的字符串
| 字段摘要 | 
|---|
| 从类 javax.management.MBeanFeatureInfo 继承的字段 | 
|---|
description, name | 
| 构造方法摘要 | |
|---|---|
ModelMBeanConstructorInfo(String description,
                          Constructor constructorMethod)
构造带有默认描述符的 MBeanConstructorInfo 对象。  | 
|
ModelMBeanConstructorInfo(String description,
                          Constructor constructorMethod,
                          Descriptor descriptor)
构造 MBeanConstructorInfo 对象。  | 
|
ModelMBeanConstructorInfo(String name,
                          String description,
                          MBeanParameterInfo[] signature)
构造带有默认描述符的 ModelMBeanConstructorInfo 对象。  | 
|
ModelMBeanConstructorInfo(String name,
                          String description,
                          MBeanParameterInfo[] signature,
                          Descriptor descriptor)
构造 MBeanConstructorInfo 对象。  | 
|
| 方法摘要 | |
|---|---|
 Object | 
clone()
创建并返回新 ModelMBeanConstructorInfo,它是此 ModelMBeanConstructorInfo 的副本。  | 
 Descriptor | 
getDescriptor()
返回关联 Descriptor 的副本。  | 
 void | 
setDescriptor(Descriptor inDescriptor)
设置 ModelMBeanConstructorInfo 的关联 Descriptor(完全替换)。  | 
 String | 
toString()
以可读形式返回包含 ModelMBeanConstructorInfo 全部内容的字符串。  | 
| 从类 javax.management.MBeanConstructorInfo 继承的方法 | 
|---|
equals, getSignature, hashCode | 
| 从类 javax.management.MBeanFeatureInfo 继承的方法 | 
|---|
getDescription, getName | 
| 从类 java.lang.Object 继承的方法 | 
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public ModelMBeanConstructorInfo(String description,
                                 Constructor constructorMethod)
description - 构造方法的可读描述。constructorMethod - 描述 MBean 构造方法的 java.lang.reflect.Method 对象。
public ModelMBeanConstructorInfo(String description,
                                 Constructor constructorMethod,
                                 Descriptor descriptor)
description - 构造方法的可读描述。constructorMethod - 描述 ModelMBean 构造方法的 java.lang.reflect.Method 对象。descriptor - 包含此 ModelMBeanConstructorInfo 实例的适当元数据的 Descriptor 的一个实例。如果它为 null,则将创建默认描述符。如果描述符不包含 "displayName" 字段,则以默认值将此字段添加到描述符中。
RuntimeOperationsException - 包装一个 IllegalArgumentException。描述符无效,或者描述符 "name" 字段不等于 name 参数,或者描述符字段 "DescriptorType" 不等于 "operation",或者描述符 "role" 字段不等于 "constructor"。
public ModelMBeanConstructorInfo(String name,
                                 String description,
                                 MBeanParameterInfo[] signature)
name - 构造方法名称。description - 构造方法的可读描述。signature - 描述构造方法参数的 MBeanParameterInfo 对象数组。
public ModelMBeanConstructorInfo(String name,
                                 String description,
                                 MBeanParameterInfo[] signature,
                                 Descriptor descriptor)
name - 构造方法名称。description - 构造方法的可读描述。signature - 描述构造方法参数的 MBeanParameterInfo 对象。descriptor - 包含此 MBeanConstructorInfo 实例的适当元数据的 Descriptor 的一个实例。如果它为 null,则将创建默认描述符。如果描述符不包含 "displayName" 字段,则以默认值将此字段添加到描述符中。
RuntimeOperationsException - 包装一个 IllegalArgumentException。描述符无效,或者描述符 "name" 字段不等于 name 参数,或者描述符字段 "DescriptorType" 不等于 "operation",或者描述符 "role" 字段不等于 "constructor"。| 方法详细信息 | 
|---|
public Object clone()
MBeanConstructorInfo 中的 cloneCloneablepublic Descriptor getDescriptor()
DescriptorAccess 中的 getDescriptorsetDescriptor(javax.management.Descriptor)public void setDescriptor(Descriptor inDescriptor)
DescriptorAccess 中的 setDescriptorinDescriptor - 替换与 ModelMBeanConstructor 关联的 Descriptor。如果描述符不包含 "displayName" 字段,则以默认值将此字段添加到描述符中。
RuntimeOperationsException - 包装一个 IllegalArgumentException。描述符无效,或者描述符 "name" 字段不等于 name 参数,或者描述符字段 "DescriptorType" 不等于 "operation",或者描述符 "role" 字段不等于 "constructor"。getDescriptor()public String toString()
Object 中的 toString
  | 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。