|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.management.MBeanFeatureInfo
javax.management.MBeanConstructorInfo
javax.management.modelmbean.ModelMBeanConstructorInfo
public class ModelMBeanConstructorInfo
ModelMBeanConstructorInfo 物件描述了 ModelMBean 的一個建構子。它是 MBeanConstructorInfo 的一個子類別,添加了關聯 Descriptor 和 DescriptorAccess 介面實作。
描述符中的欄位定義如下,但不限於此:name : 建構子名稱 descriptorType : 必須為 "operation" role : 必須為 "constructor" displayName : 建構子的可讀名稱 visibility : 1-4,其中 1 表示總是可見;4 表示幾乎不可見 presentationString : 描述如何呈現操作的 xml 格式的字元串
persistPolicy 和 currencyTimeLimit 欄位對於建構子沒有意義,但並不認為它們無效。
預設的描述符包含 name、descriptorType、displayName 和 role 欄位。
此類別的 serialVersionUID 為 3862947819818064362L。
| 欄位摘要 |
|---|
| 從類別 javax.management.MBeanFeatureInfo 繼承的欄位 |
|---|
description, name |
| 建構子摘要 | |
|---|---|
ModelMBeanConstructorInfo(String description,
Constructor constructorMethod)
建構帶有預設描述符的 ModelMBeanConstructorInfo 物件。 |
|
ModelMBeanConstructorInfo(String description,
Constructor constructorMethod,
Descriptor descriptor)
建構 ModelMBeanConstructorInfo 物件。 |
|
ModelMBeanConstructorInfo(String name,
String description,
MBeanParameterInfo[] signature)
建構帶有預設描述符的 ModelMBeanConstructorInfo 物件。 |
|
ModelMBeanConstructorInfo(String name,
String description,
MBeanParameterInfo[] signature,
Descriptor descriptor)
建構 ModelMBeanConstructorInfo 物件。 |
|
| 方法摘要 | |
|---|---|
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)
Descriptor 套件括 Constructor 物件(包含 DescriptorKey 元註釋)產生的欄位。
description - 建構子的可讀描述。constructorMethod - 描述 MBean 建構子的 java.lang.reflect.Constructor 物件。
public ModelMBeanConstructorInfo(String description,
Constructor constructorMethod,
Descriptor descriptor)
Descriptor 套件括 Constructor 物件(包含 DescriptorKey 元註釋)產生的欄位。
description - 建構子的可讀描述。constructorMethod - 描述 ModelMBean 建構子的 java.lang.reflect.Constructor 物件。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()
DescriptorRead 中的 getDescriptorMBeanFeatureInfo 中的 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()
MBeanConstructorInfo 中的 toString
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。