public class MethodNameBasedMBeanInfoAssembler extends AbstractConfigurableMBeanInfoAssembler
AbstractReflectiveMBeanInfoAssembler のサブクラス。JavaBean getter および setter は、JMX 属性として自動的に公開されます。managedMethods プロパティを介してメソッド名の配列を指定できます。複数の Bean があり、各 Bean で異なるメソッド名のセットを使用する場合は、methodMappings プロパティを使用して、Bean キー(Bean を MBeanExporter に渡すために使用される名前)をメソッド名のリストにマップできます。
methodMappings と managedMethods の両方の値を指定した場合、Spring は最初にマッピングでメソッド名を見つけようとします。Bean のメソッド名が見つからない場合、managedMethods で定義されたメソッド名が使用されます。
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| コンストラクターと説明 |
|---|
MethodNameBasedMBeanInfoAssembler() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected boolean | includeOperation(MethodSE method, StringSE beanKey) サブクラスが特定の操作の包含について投票できるようにします。 |
protected boolean | includeReadAttribute(MethodSE method, StringSE beanKey) サブクラスが特定の属性アクセサーの包含について投票できるようにします。 |
protected boolean | includeWriteAttribute(MethodSE method, StringSE beanKey) サブクラスが特定の属性ミューテーターの包含について投票できるようにします。 |
protected boolean | isMatch(MethodSE method, StringSE beanKey) |
void | setManagedMethods(StringSE... methodNames) 管理情報の作成に使用するメソッド名の配列を設定します。 |
void | setMethodMappings(PropertiesSE mappings)Bean キーのマッピングをメソッド名のコンマ区切りリストに設定します。 |
getNotificationInfo, setNotificationInfoMappings, setNotificationInfosapplyCurrencyTimeLimit, applyDefaultCurrencyTimeLimit, createModelMBeanOperationInfo, getAttributeDescription, getAttributeInfo, getClassForDescriptor, getDefaultCurrencyTimeLimit, getOperationDescription, getOperationInfo, getOperationParameters, getParameterNameDiscoverer, isExposeClassDescriptor, isUseStrictCasing, populateAttributeDescriptor, populateMBeanDescriptor, populateOperationDescriptor, setDefaultCurrencyTimeLimit, setExposeClassDescriptor, setParameterNameDiscoverer, setUseStrictCasingcheckManagedBean, getClassName, getClassToExpose, getClassToExpose, getConstructorInfo, getDescription, getMBeanInfo, getTargetClasscloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void setManagedMethods(StringSE... methodNames)
methodMappings プロパティでその Bean に対応するエントリが見つからない場合、Bean に使用されます。methodNames - 使用するメソッドを示すメソッド名の配列 setMethodMappings(java.util.Properties)public void setMethodMappings(PropertiesSE mappings)
mappings - メソッド名への Bean キーのマップピン protected boolean includeReadAttribute(MethodSE method, StringSE beanKey)
AbstractReflectiveMBeanInfoAssemblerAbstractReflectiveMBeanInfoAssembler の includeReadAttribute method - アクセサー MethodbeanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー true、それ以外の場合は falseprotected boolean includeWriteAttribute(MethodSE method, StringSE beanKey)
AbstractReflectiveMBeanInfoAssemblerAbstractReflectiveMBeanInfoAssembler の includeWriteAttribute method - ミューテータ Method。beanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー true、それ以外の場合は falseprotected boolean includeOperation(MethodSE method, StringSE beanKey)
AbstractReflectiveMBeanInfoAssemblerAbstractReflectiveMBeanInfoAssembler の includeOperation method - 操作方法 beanKey - MBeanExporter の Bean マップで MBean に関連付けられているキー