クラス InterfaceBasedMBeanInfoAssembler
java.lang.ObjectSE
org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler
org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler
org.springframework.jmx.export.assembler.AbstractConfigurableMBeanInfoAssembler
org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler
- 実装されているすべてのインターフェース:
Aware, BeanClassLoaderAware, InitializingBean, MBeanInfoAssembler
public class InterfaceBasedMBeanInfoAssembler
extends AbstractConfigurableMBeanInfoAssembler
implements BeanClassLoaderAware, InitializingBean
Bean の管理インターフェースを任意のインターフェースを使用して定義できるようにする
AbstractReflectiveMBeanInfoAssembler のサブクラス。これらのインターフェースで定義されているメソッドまたはプロパティは、MBean 操作および属性として公開されます。 デフォルトでは、このクラスは、Bean クラスによって実装されたインターフェースに基づいて、各操作または属性の包含に投票します。ただし、代わりに使用される managedInterfaces プロパティを介してインターフェースの配列を提供できます。複数の Bean があり、各 Bean で異なるインターフェースのセットを使用する場合は、Bean キー(Bean を MBeanExporter に渡すために使用される名前)を、interfaceMappings プロパティを使用してインターフェース名のリストにマッピングできます。
interfaceMappings と managedInterfaces の両方の値を指定すると、Spring は最初にマッピング内のインターフェースを見つけようとします。Bean のインターフェースが見つからない場合は、managedInterfaces で定義されたインターフェースを使用します。
- 導入:
- 1.2
- 作成者:
- Rob Harrop, Juergen Hoeller
- 関連事項:
フィールドのサマリー
クラス AbstractReflectiveMBeanInfoAssembler から継承されたフィールド
ATTRIBUTE_OPERATION_VISIBILITY, FIELD_CLASS, FIELD_CURRENCY_TIME_LIMIT, FIELD_DEFAULT, FIELD_DISPLAY_NAME, FIELD_GET_METHOD, FIELD_LOG, FIELD_LOG_FILE, FIELD_METRIC_CATEGORY, FIELD_METRIC_TYPE, FIELD_PERSIST_LOCATION, FIELD_PERSIST_NAME, FIELD_PERSIST_PERIOD, FIELD_PERSIST_POLICY, FIELD_ROLE, FIELD_SET_METHOD, FIELD_UNITS, FIELD_VISIBILITY, ROLE_GETTER, ROLE_OPERATION, ROLE_SETTERコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明voidprotected booleanincludeOperation(MethodSE method, StringSE beanKey) Methodが構成済みインターフェースの 1 つで宣言されているかどうか、およびそれがパブリックであるかどうかを確認します。protected booleanincludeReadAttribute(MethodSE method, StringSE beanKey) Methodが構成済みインターフェースの 1 つで宣言されているかどうか、およびそれがパブリックであるかどうかを確認します。protected booleanincludeWriteAttribute(MethodSE method, StringSE beanKey) Methodが構成済みインターフェースの 1 つで宣言されているかどうか、およびそれがパブリックであるかどうかを確認します。voidsetBeanClassLoader(@Nullable ClassLoaderSE beanClassLoader) Beanclass loaderSE を Bean インスタンスに提供するコールバック。voidsetInterfaceMappings(@Nullable PropertiesSE mappings) Bean キーのマッピングを、インターフェース名のコンマ区切りリストに設定します。voidsetManagedInterfaces(ClassSE<?> @Nullable... managedInterfaces) 管理情報の作成に使用するインターフェースの配列を設定します。クラス AbstractConfigurableMBeanInfoAssembler から継承されたメソッド
getNotificationInfo, setNotificationInfoMappings, setNotificationInfosクラス AbstractReflectiveMBeanInfoAssembler から継承されたメソッド
applyCurrencyTimeLimit, applyDefaultCurrencyTimeLimit, createModelMBeanOperationInfo, getAttributeDescription, getAttributeInfo, getClassForDescriptor, getDefaultCurrencyTimeLimit, getOperationDescription, getOperationInfo, getOperationParameters, getParameterNameDiscoverer, isExposeClassDescriptor, isUseStrictCasing, populateAttributeDescriptor, populateMBeanDescriptor, populateOperationDescriptor, setDefaultCurrencyTimeLimit, setExposeClassDescriptor, setParameterNameDiscoverer, setUseStrictCasing
コンストラクターの詳細
InterfaceBasedMBeanInfoAssembler
public InterfaceBasedMBeanInfoAssembler()
メソッドの詳細
setManagedInterfaces
setInterfaceMappings
Bean キーのマッピングを、インターフェース名のコンマ区切りリストに設定します。プロパティキーは Bean キーと一致し、プロパティ値はインターフェース名のリストと一致する必要があります。Bean のインターフェースを検索する場合、Spring はこれらのマッピングを最初にチェックします。
- パラメーター:
mappings- Bean キーのインターフェース名へのマッピング
setBeanClassLoader
インターフェースからコピーされた説明:BeanClassLoaderAwareBeanclass loaderSE を Bean インスタンスに提供するコールバック。通常の Bean プロパティの設定後、ただし
InitializingBean'sInitializingBean.afterPropertiesSet()メソッドやカスタム init-method などの初期化コールバックの前に呼び出されます。- 次で指定:
- インターフェース
BeanClassLoaderAwareのsetBeanClassLoader - パラメーター:
beanClassLoader- 所有クラスローダー
afterPropertiesSet
public void afterPropertiesSet()インターフェースからコピーされた説明:InitializingBeanすべての Bean プロパティを設定し、BeanFactoryAware、ApplicationContextAwareなどを満たした後、包含BeanFactoryによって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
- 次で指定:
- インターフェース
InitializingBeanのafterPropertiesSet
includeReadAttribute
Methodが構成済みインターフェースの 1 つで宣言されているかどうか、およびそれがパブリックであるかどうかを確認します。- 次で指定:
- クラス
AbstractReflectiveMBeanInfoAssemblerのincludeReadAttribute - パラメーター:
method- アクセサーMethod。beanKey-beansMapの MBean に関連付けられたキー。- 戻り値:
-
Methodが構成済みインターフェースの 1 つで宣言されている場合はtrue、それ以外の場合はfalse。
includeWriteAttribute
Methodが構成済みインターフェースの 1 つで宣言されているかどうか、およびそれがパブリックであるかどうかを確認します。- 次で指定:
- クラス
AbstractReflectiveMBeanInfoAssemblerのincludeWriteAttribute - パラメーター:
method- ミューテータMethod。beanKey-beansMapの MBean に関連付けられたキー。- 戻り値:
-
Methodが構成済みインターフェースの 1 つで宣言されている場合はtrue、それ以外の場合はfalse。
includeOperation
Methodが構成済みインターフェースの 1 つで宣言されているかどうか、およびそれがパブリックであるかどうかを確認します。- 次で指定:
- クラス
AbstractReflectiveMBeanInfoAssemblerのincludeOperation - パラメーター:
method- 操作Method。beanKey-beansMapの MBean に関連付けられたキー。- 戻り値:
-
Methodが構成済みインターフェースの 1 つで宣言されている場合はtrue、それ以外の場合はfalse。