public class ModelMBeanConstructorInfo extends MBeanConstructorInfo implements DescriptorAccess
ModelMBeanConstructorInfoオブジェクトは、ModelMBeanのコンストラクタを記述します。 これは、関連Descriptorを持ち、DescriptorAccessインタフェースを実装した、MBeanConstructorInfoのサブクラスです。
記述子内のフィールドは次のように定義済みですが、この内容に限定されません。 この表で型がNumberである場合は、Longの10進数表現であるStringを使用することもできます。
名前 | 型 | 意味 |
---|---|---|
name | String | コンストラクタ名。 |
descriptorType | String | 必ずoperation。 |
role | String | 必ずconstructor。 |
displayName | String | 人間が読める形式のコンストラクタ名。 |
visibility | Number | 1 - 4の値のうち1: 常に可視4:ほとんど不可視。 |
presentationString | String | オペレーションの表現方法を説明するためのXML形式の文字列 |
persistPolicy
フィールドとcurrencyTimeLimit
フィールドは、コンストラクタに対して無意味ですが、無効とも見なされません。
デフォルトの記述子は、name
、descriptorType
、displayName
、およびrole
フィールドを設定します。
このクラスのserialVersionUIDは3862947819818064362L
です。
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のコンテンツ全体を含む文字列を返します。
|
equals, getSignature, hashCode
getDescription, getName
public ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod)
Descriptor
には、DescriptorKey
メタ注釈を含むConstructor
オブジェクト上の注釈が寄与するフィールドが含まれます。 description
- 人間が読める形式のコンストラクタの説明。constructorMethod
- MBeanコンストラクタを記述するjava.lang.reflect.Constructorオブジェクト。public ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod, Descriptor descriptor)
Descriptor
には、DescriptorKey
メタ注釈を含むConstructor
オブジェクト上の注釈が寄与するフィールドが含まれます。 description
- 人間が読める形式のコンストラクタの説明。constructorMethod
- ModelMBeanコンストラクタを記述するjava.lang.reflect.Constructorオブジェクト。descriptor
- このModelMBeanConstructorInfoインスタンス用として適切なメタデータを含むDescriptorインスタンス。 nullの場合、デフォルトの記述子が作成される。 displayNameフィールドを持たない記述子には、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フィールドを持たない記述子には、displayNameフィールドがデフォルト値で追加される。 RuntimeOperationsException
- IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameがnameパラメータと等しくない場合、記述子フィールドdescriptorTypeがoperationと等しくない場合、または記述子フィールドroleが存在するがconstructorと等しくない場合。 public Object clone()
clone
、クラスMBeanConstructorInfo
Cloneable
public Descriptor getDescriptor()
getDescriptor
、インタフェースDescriptorRead
getDescriptor
、クラスMBeanFeatureInfo
setDescriptor(javax.management.Descriptor)
public void setDescriptor(Descriptor inDescriptor)
setDescriptor
、インタフェースDescriptorAccess
inDescriptor
- ModelMBeanConstructorに関連付けられたDescriptorを置換する。 記述子にdisplayName、name、role、descriptorTypeフィールドすべてが含まれない場合は、見つからないフィールドがデフォルト値で追加される。 RuntimeOperationsException
- IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameが存在するがnameパラメータと等しくない場合、記述子フィールドdescriptorTypeが存在するがoperationと等しくない場合、または記述子フィールドroleが存在するがconstructorと等しくない場合。 getDescriptor()
public String toString()
toString
、クラスMBeanConstructorInfo
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。