public class SimpleReflectiveMBeanInfoAssembler extends AbstractConfigurableMBeanInfoAssembler
AbstractReflectiveMBeanInfoAssembler
that always votes yes for method and property inclusion, effectively exposing
all public methods and properties as operations and attributes.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
Constructor and Description |
---|
SimpleReflectiveMBeanInfoAssembler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
includeOperation(Method method,
String beanKey)
Always returns
true . |
protected boolean |
includeReadAttribute(Method method,
String beanKey)
Always returns
true . |
protected boolean |
includeWriteAttribute(Method method,
String beanKey)
Always returns
true . |
getNotificationInfo, setNotificationInfoMappings, setNotificationInfos
applyCurrencyTimeLimit, applyDefaultCurrencyTimeLimit, createModelMBeanOperationInfo, getAttributeDescription, getAttributeInfo, getClassForDescriptor, getDefaultCurrencyTimeLimit, getOperationDescription, getOperationInfo, getOperationParameters, getParameterNameDiscoverer, isExposeClassDescriptor, isUseStrictCasing, populateAttributeDescriptor, populateMBeanDescriptor, populateOperationDescriptor, setDefaultCurrencyTimeLimit, setExposeClassDescriptor, setParameterNameDiscoverer, setUseStrictCasing
checkManagedBean, getClassName, getClassToExpose, getClassToExpose, getConstructorInfo, getDescription, getMBeanInfo, getTargetClass
protected boolean includeReadAttribute(Method method, String beanKey)
true
.includeReadAttribute
in class AbstractReflectiveMBeanInfoAssembler
method
- the accessor Method
beanKey
- the key associated with the MBean in the beans map
of the MBeanExporter
true
if the accessor should be included in the management interface,
otherwise false
protected boolean includeWriteAttribute(Method method, String beanKey)
true
.includeWriteAttribute
in class AbstractReflectiveMBeanInfoAssembler
method
- the mutator Method
.beanKey
- the key associated with the MBean in the beans map
of the MBeanExporter
true
if the mutator should be included in the management interface,
otherwise false
protected boolean includeOperation(Method method, String beanKey)
true
.includeOperation
in class AbstractReflectiveMBeanInfoAssembler
method
- the operation methodbeanKey
- the key associated with the MBean in the beans map
of the MBeanExporter