モジュール java.management

クラスModelMBeanConstructorInfo

すべての実装されたインタフェース:
Serializable, Cloneable, DescriptorAccess, DescriptorRead

public class ModelMBeanConstructorInfo extends MBeanConstructorInfo implements DescriptorAccess

ModelMBeanConstructorInfoオブジェクトは、ModelMBeanのコンストラクタを記述します。 これは、関連Descriptorを持ち、DescriptorAccessインタフェースを実装した、MBeanConstructorInfoのサブクラスです。

記述子内のフィールドは次のように定義済みですが、この内容に限定されません。 この表で型がNumberである場合は、Longの10進数表現であるStringを使用することもできます。

ModelMBeanConstructorInfoフィールド
名前意味
nameString コンストラクタ名。
descriptorTypeString 必ずoperation。
roleString 必ずconstructor。
displayNameString 人間が読める形式のコンストラクタ名。
visibilityNumber 1 - 4の値のうち1: 常に可視4:ほとんど不可視。
presentationStringString オペレーションの表現方法を説明するためのXML形式の文字列

persistPolicyフィールドとcurrencyTimeLimitフィールドは、コンストラクタに対して無意味ですが、無効とも見なされません。

デフォルトの記述子は、name descriptorTypedisplayName、およびroleフィールドを設定します。

このクラスのserialVersionUID3862947819818064362Lです。

導入されたバージョン:
1.5
関連項目:
  • コンストラクタの詳細

    • ModelMBeanConstructorInfo

      public ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod)
      デフォルトの記述子でModelMBeanConstructorInfoオブジェクトを構築します。 構築されたオブジェクトのDescriptorには、DescriptorKeyメタ注釈を含むConstructorオブジェクト上の注釈が寄与するフィールドが含まれます。
      パラメータ:
      description - 人間が読める形式のコンストラクタの説明。
      constructorMethod - MBeanコンストラクタを記述するjava.lang.reflect.Constructorオブジェクト。
    • ModelMBeanConstructorInfo

      public ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod, Descriptor descriptor)
      ModelMBeanConstructorInfoオブジェクトを構築します。 構築されたオブジェクトのDescriptorには、DescriptorKeyメタ注釈を含むConstructorオブジェクト上の注釈が寄与するフィールドが含まれます。
      パラメータ:
      description - 人間が読める形式のコンストラクタの説明。
      constructorMethod - ModelMBeanコンストラクタを記述するjava.lang.reflect.Constructorオブジェクト。
      descriptor - このModelMBeanConstructorInfoインスタンス用として適切なメタデータを含むDescriptorインスタンス。 nullの場合、デフォルトの記述子が作成される。 displayNameフィールドを持たない記述子には、displayNameフィールドがデフォルト値で追加される。
      例外:
      RuntimeOperationsException - IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameがnameパラメータと等しくない場合、記述子フィールドdescriptorTypeがoperationと等しくない場合、または記述子フィールドroleが存在するがconstructorと等しくない場合。
    • ModelMBeanConstructorInfo

      public ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature)
      デフォルトの記述子でModelMBeanConstructorInfoオブジェクトを構築します。
      パラメータ:
      name - コンストラクタの名前。
      description - 人間が読める形式のコンストラクタの説明。
      signature - コンストラクタのパラメータ(引数)を説明するMBeanParameterInfoオブジェクト配列。
    • ModelMBeanConstructorInfo

      public ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature, Descriptor descriptor)
      ModelMBeanConstructorInfoオブジェクトを構築します。
      パラメータ:
      name - コンストラクタの名前。
      description - 人間が読める形式のコンストラクタの説明。
      signature - コンストラクタのパラメータ(引数)を説明するMBeanParameterInfoオブジェクト。
      descriptor - このMBeanConstructorInfoインスタンス用として適切なメタデータを含むDescriptorインスタンス。 nullの場合、デフォルトの記述子が作成される。 displayNameフィールドを持たない記述子には、displayNameフィールドがデフォルト値で追加される。
      例外:
      RuntimeOperationsException - IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameがnameパラメータと等しくない場合、記述子フィールドdescriptorTypeがoperationと等しくない場合、または記述子フィールドroleが存在するがconstructorと等しくない場合。
  • メソッドの詳細

    • clone

      public Object clone()
      このModelMBeanConstructorInfoを複製して新しいModelMBeanConstructorInfoを作成し、返します。
      オーバーライド:
      clone、クラスMBeanConstructorInfo
      戻り値:
      このインスタンスの複製。
      関連項目:
    • getDescriptor

      public Descriptor getDescriptor()
      関連付けられたDescriptorのコピーを返します。
      定義:
      getDescriptor、インタフェースDescriptorRead
      オーバーライド:
      getDescriptor、クラスMBeanFeatureInfo
      戻り値:
      ModelMBeanConstructorInfoオブジェクトに関連付けられたDescriptor。
      関連項目:
    • setDescriptor

      public void setDescriptor(Descriptor inDescriptor)
      ModelMBeanConstructorInfoに関連付けられたDescriptor (完全置換)を設定します。 新しいDescriptorがnullの場合、関連Descriptorはデフォルトの記述子に戻ります。 Descriptorの割当て前には、妥当性検査が行われます。 新しいDescriptorが無効である場合、IllegalArgumentExceptionをラップするRuntimeOperationsExceptionがスローされます。
      定義:
      setDescriptor、インタフェースDescriptorAccess
      パラメータ:
      inDescriptor - ModelMBeanConstructorに関連付けられたDescriptorを置換する。 記述子にdisplayName、name、role、descriptorTypeフィールドすべてが含まれない場合は、見つからないフィールドがデフォルト値で追加される。
      例外:
      RuntimeOperationsException - IllegalArgumentExceptionをラップする。 記述子が無効である場合、記述子フィールドnameが存在するがnameパラメータと等しくない場合、記述子フィールドdescriptorTypeが存在するがoperationと等しくない場合、または記述子フィールドroleが存在するがconstructorと等しくない場合。
      関連項目:
    • toString

      public String toString()
      人間が読める形式のModelMBeanConstructorInfoのコンテンツ全体を含む文字列を返します。
      オーバーライド:
      toString、クラスObject
      戻り値:
      このオブジェクトの文字列表現