クラス MetadataMBeanInfoAssembler
java.lang.ObjectSE
org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler
org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler
org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler
- 実装されたすべてのインターフェース:
InitializingBean
、AutodetectCapableMBeanInfoAssembler
、MBeanInfoAssembler
public class MetadataMBeanInfoAssembler
extends AbstractReflectiveMBeanInfoAssembler
implements AutodetectCapableMBeanInfoAssembler, InitializingBean
ソースレベルのメタデータから管理インターフェース情報を読み取る
MBeanInfoAssembler
インターフェースの実装。JmxAttributeSource
戦略インターフェースを使用するため、サポートされている実装を使用してメタデータを読み取ることができます。すぐに使える Spring は、アノテーションに基づく実装 AnnotationJmxAttributeSource
を提供します。
- 導入:
- 1.2
- 作成者:
- Rob Harrop, Juergen Hoeller, Jennifer Hickey
- 関連事項:
フィールドのサマリー
クラス org.springframework.jmx.export.assembler.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
コンストラクターの概要
コンストラクターコンストラクター説明setAttributeSource(org.springframework.jmx.export.metadata.JmxAttributeSource)
メソッドを介して構成する必要がある新しいMetadataMBeanInfoAssembler
を作成します。MetadataMBeanInfoAssembler
(JmxAttributeSource attributeSource) 指定されたJmxAttributeSource
の新しいMetadataMBeanInfoAssembler
を作成します。メソッドのサマリー
修飾子と型メソッド説明void
protected void
checkManagedBean
(ObjectSE managedBean) JDK 動的プロキシが検出された場合、IllegalArgumentException をスローします。protected StringSE
getAttributeDescription
(PropertyDescriptorSE propertyDescriptor, StringSE beanKey) このプロパティ記述子に対応する属性の説明を作成します。protected StringSE
getDescription
(ObjectSE managedBean, StringSE beanKey) ソースレベルのメタデータから管理対象リソースの説明を読み取ります。protected ModelMBeanNotificationInfoSE[]
getNotificationInfo
(ObjectSE managedBean, StringSE beanKey) protected StringSE
getOperationDescription
(MethodSE method, StringSE beanKey) メタデータから、指定されたMethod
の説明を取得します。protected MBeanParameterInfoSE[]
getOperationParameters
(MethodSE method, StringSE beanKey) メソッドにアタッチされたManagedOperationParameter
属性からMBeanParameterInfo
を読み取ります。boolean
includeBean
(ClassSE<?> beanClass, StringSE beanName) Bean の自動検出に使用されます。protected boolean
includeOperation
(MethodSE method, StringSE beanKey) オペレーションの包含に関する投票。protected boolean
includeReadAttribute
(MethodSE method, StringSE beanKey) 属性アクセサーを含めることに投票します。protected boolean
includeWriteAttribute
(MethodSE method, StringSE beanKey) 属性ミューテーターの包含に関する投票。protected void
populateAttributeDescriptor
(DescriptorSE desc, MethodSE getter, MethodSE setter, StringSE beanKey) ManagedAttribute
属性またはManagedMetric
属性の記述子フィールドを属性記述子に追加します。protected void
populateMBeanDescriptor
(DescriptorSE desc, ObjectSE managedBean, StringSE beanKey) ManagedResource
属性の記述子フィールドを MBean 記述子に追加します。protected void
populateOperationDescriptor
(DescriptorSE desc, MethodSE method, StringSE beanKey) ManagedAttribute
属性から属性記述子に記述子フィールドを追加します。void
setAttributeSource
(JmxAttributeSource attributeSource) Bean クラスからメタデータを読み取るために使用するJmxAttributeSource
実装を設定します。クラス org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler から継承されたメソッド
applyCurrencyTimeLimit, applyDefaultCurrencyTimeLimit, createModelMBeanOperationInfo, getAttributeInfo, getClassForDescriptor, getDefaultCurrencyTimeLimit, getOperationInfo, getParameterNameDiscoverer, isExposeClassDescriptor, isUseStrictCasing, setDefaultCurrencyTimeLimit, setExposeClassDescriptor, setParameterNameDiscoverer, setUseStrictCasing
クラス org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler から継承されたメソッド
getClassName, getClassToExpose, getClassToExpose, getConstructorInfo, getMBeanInfo, getTargetClass
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.jmx.export.assembler.MBeanInfoAssembler から継承されたメソッド
getMBeanInfo
コンストラクターの詳細
MetadataMBeanInfoAssembler
public MetadataMBeanInfoAssembler()setAttributeSource(org.springframework.jmx.export.metadata.JmxAttributeSource)
メソッドを介して構成する必要がある新しいMetadataMBeanInfoAssembler
を作成します。MetadataMBeanInfoAssembler
指定されたJmxAttributeSource
の新しいMetadataMBeanInfoAssembler
を作成します。- パラメーター:
attributeSource
- 使用する JmxAttributeSource
メソッドの詳細
setAttributeSource
Bean クラスからメタデータを読み取るために使用するJmxAttributeSource
実装を設定します。afterPropertiesSet
public void afterPropertiesSet()インターフェースからコピーされた説明:InitializingBean
すべての Bean プロパティを設定し、BeanFactoryAware
、ApplicationContextAware
などを満たした後、包含BeanFactory
によって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
- 次で指定:
- インターフェース
InitializingBean
のafterPropertiesSet
checkManagedBean
JDK 動的プロキシが検出された場合、IllegalArgumentException をスローします。メタデータはターゲットクラスと CGLIB プロキシからのみ読み取ることができます!- オーバーライド:
- クラス
AbstractMBeanInfoAssembler
のcheckManagedBean
- パラメーター:
managedBean
- 公開される Bean (AOP プロキシである可能性があります)- 例外:
IllegalArgumentExceptionSE
- Bean は露出には無効です
includeBean
Bean の自動検出に使用されます。Bean のクラスにManagedResource
属性があるかどうかを確認します。そうであれば、含まれる Bean のリストに追加されます。- 次で指定:
- インターフェース
AutodetectCapableMBeanInfoAssembler
のincludeBean
- パラメーター:
beanClass
- Bean のクラスbeanName
- Bean ファクトリ内の Bean の名前
includeReadAttribute
属性アクセサーを含めることに投票します。- 次で指定:
- クラス
AbstractReflectiveMBeanInfoAssembler
のincludeReadAttribute
- パラメーター:
method
- アクセサーメソッドbeanKey
- Beans マップで MBean に関連付けられているキー- 戻り値:
- メソッドに適切なメタデータがあるかどうか
includeWriteAttribute
属性ミューテーターの包含に関する投票。- 次で指定:
- クラス
AbstractReflectiveMBeanInfoAssembler
のincludeWriteAttribute
- パラメーター:
method
- ミューテーターメソッドbeanKey
- Beans マップで MBean に関連付けられているキー- 戻り値:
- メソッドに適切なメタデータがあるかどうか
includeOperation
オペレーションの包含に関する投票。- 次で指定:
- クラス
AbstractReflectiveMBeanInfoAssembler
のincludeOperation
- パラメーター:
method
- 操作方法beanKey
- Beans マップで MBean に関連付けられているキー- 戻り値:
- メソッドに適切なメタデータがあるかどうか
getDescription
ソースレベルのメタデータから管理対象リソースの説明を読み取ります。説明が見つからない場合は、空のString
を返します。- オーバーライド:
- クラス
AbstractMBeanInfoAssembler
のgetDescription
- パラメーター:
managedBean
- Bean インスタンス (AOP プロキシである可能性があります)beanKey
-MBeanExporter
の Bean マップで MBean に関連付けられているキー
getAttributeDescription
protected StringSE getAttributeDescription(PropertyDescriptorSE propertyDescriptor, StringSE beanKey) このプロパティ記述子に対応する属性の説明を作成します。getter または setter 属性のメタデータを使用して説明を作成しようとします。それ以外の場合は、プロパティ名を使用します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssembler
のgetAttributeDescription
- パラメーター:
propertyDescriptor
- 属性の PropertyDescriptorbeanKey
-MBeanExporter
の Bean マップで MBean に関連付けられているキー- 戻り値:
- 属性の説明
getOperationDescription
メタデータから提供されたMethod
の説明を取得します。メタデータに説明が存在しないメソッド名を使用します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssembler
のgetOperationDescription
- パラメーター:
method
- 操作方法beanKey
-MBeanExporter
の Bean マップで MBean に関連付けられているキー- 戻り値:
- 操作の説明
getOperationParameters
メソッドにアタッチされたManagedOperationParameter
属性からMBeanParameterInfo
を読み取ります。属性が見つからない場合、MBeanParameterInfo
の空の配列を返します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssembler
のgetOperationParameters
- パラメーター:
method
- パラメーター情報を取得するMethod
beanKey
-MBeanExporter
の Bean マップで MBean に関連付けられているキー- 戻り値:
MBeanParameterInfo
配列
getNotificationInfo
protected ModelMBeanNotificationInfoSE[] getNotificationInfo(ObjectSE managedBean, StringSE beanKey) - オーバーライド:
- クラス
AbstractMBeanInfoAssembler
のgetNotificationInfo
- パラメーター:
managedBean
- Bean インスタンス (AOP プロキシである可能性があります)beanKey
-MBeanExporter
の Bean マップで MBean に関連付けられているキー- 戻り値:
- 通知メタデータ
populateMBeanDescriptor
ManagedResource
属性から MBean 記述子に記述子フィールドを追加します。具体的には、currencyTimeLimit
、persistPolicy
、persistPeriod
、persistLocation
、persistName
記述子フィールドがメタデータに存在する場合はそれらを追加します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssembler
のpopulateMBeanDescriptor
- パラメーター:
desc
- MBean リソースのDescriptor
。managedBean
- Bean インスタンス (AOP プロキシである可能性があります)beanKey
-MBeanExporter
の Bean マップで MBean に関連付けられているキー- 関連事項:
populateAttributeDescriptor
protected void populateAttributeDescriptor(DescriptorSE desc, @Nullable MethodSE getter, @Nullable MethodSE setter, StringSE beanKey) ManagedAttribute
属性またはManagedMetric
属性の記述子フィールドを属性記述子に追加します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssembler
のpopulateAttributeDescriptor
- パラメーター:
desc
- 属性記述子getter
- 属性のアクセサーメソッドsetter
- 属性のミューテーターメソッドbeanKey
-MBeanExporter
の Bean マップで MBean に関連付けられているキー- 関連事項:
populateOperationDescriptor
ManagedAttribute
属性から属性記述子に記述子フィールドを追加します。具体的には、メタデータにcurrencyTimeLimit
記述子フィールドが存在する場合は、それを追加します。- オーバーライド:
- クラス
AbstractReflectiveMBeanInfoAssembler
のpopulateOperationDescriptor
- パラメーター:
desc
- 操作記述子method
- 操作に対応するメソッドbeanKey
-MBeanExporter
の Bean マップで MBean に関連付けられているキー- 関連事項: