AbstractReflectiveMBeanInfoAssembler that allows
to specify method names to be exposed as MBean operations and attributes.
JavaBean getters and setters will automatically be exposed as JMX attributes.
You can supply an array of method names via the managedMethods
property. If you have multiple beans and you wish each bean to use a different
set of method names, then you can map bean keys (that is the name used to pass
the bean to the MBeanExporter) to a list of method names using the
methodMappings property.
If you specify values for both methodMappings and
managedMethods, Spring will attempt to find method names in the
mappings first. If no method names for the bean are found, it will use the
method names defined by managedMethods.
setManagedMethods, setMethodMappings, InterfaceBasedMBeanInfoAssembler, SimpleReflectiveMBeanInfoAssembler, MethodExclusionMBeanInfoAssembler, org.springframework.jmx.export.MBeanExporter
| Modifier and Type | Field and Description |
|---|---|
| private Set | managedMethods
Stores the set of method names to use for creating the management interface. |
| private Map | methodMappings
Stores the mappings of bean keys to an array of method names. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | includeOperation(Method
the operation method method, String the key associated with the MBean in the beans map
of the beanKey)MBeanExporterImplements abstract org. |
| protected boolean | includeReadAttribute(Method
the accessor method, String Methodthe key associated with the MBean in the beans map
of the beanKey)MBeanExporterImplements abstract org. |
| protected boolean | includeWriteAttribute(Method
the mutator method, String Method.the key associated with the MBean in the beans map
of the beanKey)MBeanExporterImplements abstract org. |
| protected boolean | |
| public void | setManagedMethods(String...
an array of method names indicating the methods to use methodNames)Set the array of method names to use for creating the management info. |
| public void | setMethodMappings(Properties
the mappings of bean keys to method names mappings)Set the mappings of bean keys to a comma-separated list of method names. |
| managedMethods | back to summary |
|---|---|
| private Set<String> managedMethods Stores the set of method names to use for creating the management interface. | |
| methodMappings | back to summary |
|---|---|
| private Map<String, Set<String>> methodMappings Stores the mappings of bean keys to an array of method names. | |
| MethodNameBasedMBeanInfoAssembler | back to summary |
|---|---|
| public MethodNameBasedMBeanInfoAssembler() | |
| includeOperation | back to summary |
|---|---|
| protected boolean includeOperation(Method method, String beanKey) Implements abstract org. Doc from org. Allows subclasses to vote on the inclusion of a particular operation. | |
| includeReadAttribute | back to summary |
|---|---|
| protected boolean includeReadAttribute(Method method, String beanKey) Implements abstract org. Doc from org. Allows subclasses to vote on the inclusion of a particular attribute accessor. | |
| includeWriteAttribute | back to summary |
|---|---|
| protected boolean includeWriteAttribute(Method method, String beanKey) Implements abstract org. Doc from org. Allows subclasses to vote on the inclusion of a particular attribute mutator. | |
| isMatch | back to summary |
|---|---|
| protected boolean isMatch(Method method, String beanKey) | |
| setManagedMethods | back to summary |
|---|---|
| public void setManagedMethods(String... methodNames) Set the array of method names to use for creating the management info.
These method names will be used for a bean if no entry corresponding to
that bean is found in the
| |
| setMethodMappings | back to summary |
|---|---|
| public void setMethodMappings(Properties mappings) Set the mappings of bean keys to a comma-separated list of method names. The property key should match the bean key and the property value should match the list of method names. When searching for method names for a bean, Spring will check these mappings first.
| |