java.lang.Object | |||
↳ | org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler | ||
↳ | org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler | ||
↳ | org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler |
Implementation of the MBeanInfoAssembler
interface that reads the management interface information from source level metadata.
Uses the JmxAttributeSource
strategy interface, so that
metadata can be read using any supported implementation. Out of the box,
Spring provides an implementation based on JDK 1.5+ annotations,
AnnotationJmxAttributeSource
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new
MetadataMBeanInfoAssembler | |||||||||||
Create a new
MetadataMBeanInfoAssembler |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Used for autodetection of beans.
| |||||||||||
Set the
JmxAttributeSource implementation to use for
reading the metadata from the bean class. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Throws an IllegalArgumentException if it encounters a JDK dynamic proxy.
| |||||||||||
Creates a description for the attribute corresponding to this property
descriptor.
| |||||||||||
Reads managed resource description from the source level metadata.
| |||||||||||
Reads the
ManagedNotification metadata from the Class of the managed resource
and generates and returns the corresponding ModelMBeanNotificationInfo metadata. | |||||||||||
Retrieves the description for the supplied
Method from the
metadata. | |||||||||||
Reads
MBeanParameterInfo from the ManagedOperationParameter
attributes attached to a method. | |||||||||||
Votes on the inclusion of an operation.
| |||||||||||
Vote on the inclusion of an attribute accessor.
| |||||||||||
Votes on the inclusion of an attribute mutator.
| |||||||||||
Adds descriptor fields from the
ManagedAttribute attribute or the ManagedMetric attribute
to the attribute descriptor. | |||||||||||
Adds descriptor fields from the
ManagedResource attribute
to the MBean descriptor. | |||||||||||
Adds descriptor fields from the
ManagedAttribute attribute
to the attribute descriptor. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.jmx.export.assembler.AbstractReflectiveMBeanInfoAssembler
| |||||||||||
From class
org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.jmx.export.assembler.AutodetectCapableMBeanInfoAssembler
| |||||||||||
From interface
org.springframework.jmx.export.assembler.MBeanInfoAssembler
|
Create a new MetadataMBeanInfoAssembler
which needs to be
configured through the
setAttributeSource(JmxAttributeSource)
method.
Create a new MetadataMBeanInfoAssembler
for the given
JmxAttributeSource
.
attributeSource | the JmxAttributeSource to use |
---|
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
Used for autodetection of beans. Checks to see if the bean's class has a
ManagedResource
attribute. If so it will add it list of included beans.
beanClass | the class of the bean |
---|---|
beanName | the name of the bean in the bean factory |
Set the JmxAttributeSource
implementation to use for
reading the metadata from the bean class.
Throws an IllegalArgumentException if it encounters a JDK dynamic proxy. Metadata can only be read from target classes and CGLIB proxies!
managedBean | the bean that will be exposed (might be an AOP proxy) |
---|
IllegalArgumentException |
---|
Creates a description for the attribute corresponding to this property descriptor. Attempts to create the description using metadata from either the getter or setter attributes, otherwise uses the property name.
propertyDescriptor | the PropertyDescriptor for the attribute |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
Reads managed resource description from the source level metadata.
Returns an empty String
if no description can be found.
managedBean | the bean instance (might be an AOP proxy) |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
Reads the ManagedNotification
metadata from the Class
of the managed resource
and generates and returns the corresponding ModelMBeanNotificationInfo
metadata.
managedBean | the bean instance (might be an AOP proxy) |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
Retrieves the description for the supplied Method
from the
metadata. Uses the method name is no description is present in the metadata.
method | the operation method |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
Reads MBeanParameterInfo
from the ManagedOperationParameter
attributes attached to a method. Returns an empty array of MBeanParameterInfo
if no attributes are found.
method | the Method to get the parameter information for |
---|---|
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
MBeanParameterInfo
array
Votes on the inclusion of an operation.
method | the operation method |
---|---|
beanKey | the key associated with the MBean in the beans map |
Vote on the inclusion of an attribute accessor.
method | the accessor method |
---|---|
beanKey | the key associated with the MBean in the beans map |
Votes on the inclusion of an attribute mutator.
method | the mutator method |
---|---|
beanKey | the key associated with the MBean in the beans map |
Adds descriptor fields from the ManagedAttribute
attribute or the ManagedMetric
attribute
to the attribute descriptor.
desc | the attribute descriptor |
---|---|
getter | the accessor method for the attribute |
setter | the mutator method for the attribute |
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
Adds descriptor fields from the ManagedResource
attribute
to the MBean descriptor. Specifically, adds the currencyTimeLimit
,
persistPolicy
, persistPeriod
, persistLocation
and persistName
descriptor fields if they are present in the metadata.
desc | the Descriptor for the MBean resource. |
---|---|
managedBean | the bean instance (might be an AOP proxy) |
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |
Adds descriptor fields from the ManagedAttribute
attribute
to the attribute descriptor. Specifically, adds the currencyTimeLimit
descriptor field if it is present in the metadata.
desc | the operation descriptor |
---|---|
method | the method corresponding to the operation |
beanKey | the key associated with the MBean in the beans map
of the MBeanExporter |