public class AnnotationJmxAttributeSource extends ObjectSE implements JmxAttributeSource, BeanFactoryAware
JmxAttributeSource インターフェースの実装。ManagedResource, ManagedAttribute, ManagedOperation| コンストラクターと説明 |
|---|
AnnotationJmxAttributeSource() |
| 修飾子と型 | メソッドと説明 |
|---|---|
ManagedAttribute | getManagedAttribute(MethodSE method) 指定された Method に対応するメタデータがある場合、実装は ManagedAttribute のインスタンスを返す必要があります。 |
ManagedMetric | getManagedMetric(MethodSE method) 指定された Method に対応するメタデータがある場合、実装は ManagedMetric のインスタンスを返す必要があります。 |
ManagedNotification[] | getManagedNotifications(ClassSE<?> clazz) 指定された Class に対応するメタデータがある場合、実装は ManagedNotifications の配列を返す必要があります。 |
ManagedOperation | getManagedOperation(MethodSE method) 指定された Method に対応するメタデータがある場合、実装は ManagedOperation のインスタンスを返す必要があります。 |
ManagedOperationParameter[] | getManagedOperationParameters(MethodSE method) 指定された Method に対応するメタデータがある場合、実装は ManagedOperationParameter の配列を返す必要があります。 |
ManagedResource | getManagedResource(ClassSE<?> beanClass) 提供された Class に適切なメタデータがある場合、実装は ManagedResource のインスタンスを返す必要があります。 |
void | setBeanFactory(BeanFactory beanFactory) 所有ファクトリを Bean インスタンスに提供するコールバック。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void setBeanFactory(BeanFactory beanFactory)
BeanFactoryAware 通常の Bean プロパティの設定後、ただし InitializingBean.afterPropertiesSet() またはカスタム init-method などの初期化コールバックの前に呼び出されます。
BeanFactoryAware の setBeanFactory beanFactory - 所有 BeanFactory(非 null)。Bean は、ファクトリのメソッドをすぐに呼び出すことができます。BeanInitializationException@Nullable public ManagedResource getManagedResource(ClassSE<?> beanClass) throws InvalidMetadataException
JmxAttributeSourceClass に適切なメタデータがある場合、実装は ManagedResource のインスタンスを返す必要があります。それ以外の場合は null を返します。JmxAttributeSource の getManagedResource beanClass - 属性データを読み取るクラス null InvalidMetadataException - 無効な属性の場合 @Nullable public ManagedAttribute getManagedAttribute(MethodSE method) throws InvalidMetadataException
JmxAttributeSourceMethod に対応するメタデータがある場合、実装は ManagedAttribute のインスタンスを返す必要があります。それ以外の場合は null を返します。JmxAttributeSource の getManagedAttribute method - 属性データを読み取るメソッド null InvalidMetadataException - 無効な属性の場合 @Nullable public ManagedMetric getManagedMetric(MethodSE method) throws InvalidMetadataException
JmxAttributeSourceMethod に対応するメタデータがある場合、実装は ManagedMetric のインスタンスを返す必要があります。それ以外の場合は null を返します。JmxAttributeSource の getManagedMetric method - 属性データを読み取るメソッド null InvalidMetadataException - 無効な属性の場合 @Nullable public ManagedOperation getManagedOperation(MethodSE method) throws InvalidMetadataException
JmxAttributeSourceMethod に対応するメタデータがある場合、実装は ManagedOperation のインスタンスを返す必要があります。それ以外の場合は null を返します。JmxAttributeSource の getManagedOperation method - 属性データを読み取るメソッド null InvalidMetadataException - 無効な属性の場合 public ManagedOperationParameter[] getManagedOperationParameters(MethodSE method) throws InvalidMetadataException
JmxAttributeSourceMethod に対応するメタデータがある場合、実装は ManagedOperationParameter の配列を返す必要があります。それ以外の場合、メタデータが見つからない場合は空の配列を返します。JmxAttributeSource の getManagedOperationParameters method - メタデータを読み取る Method InvalidMetadataException - 無効な属性の場合。public ManagedNotification[] getManagedNotifications(ClassSE<?> clazz) throws InvalidMetadataException
JmxAttributeSourceClass に対応するメタデータがある場合、実装は ManagedNotifications の配列を返す必要があります。それ以外の場合は、空の配列を返します。JmxAttributeSource の getManagedNotifications clazz - メタデータを読み取る Class InvalidMetadataException - メタデータが無効な場合