public class AnnotationJmxAttributeSource extends Object implements JmxAttributeSource, BeanFactoryAware
JmxAttributeSource interface that
 reads annotations and exposes the corresponding attributes.ManagedResource, 
ManagedAttribute, 
ManagedOperation| Constructor and Description | 
|---|
| AnnotationJmxAttributeSource() | 
| Modifier and Type | Method and Description | 
|---|---|
| ManagedAttribute | getManagedAttribute(Method method)Implementations should return an instance of  ManagedAttributeif the suppliedMethodhas the corresponding metadata. | 
| ManagedMetric | getManagedMetric(Method method)Implementations should return an instance of  ManagedMetricif the suppliedMethodhas the corresponding metadata. | 
| ManagedNotification[] | getManagedNotifications(Class<?> clazz)Implementations should return an array of  ManagedNotificationsif the supplied theClasshas the corresponding metadata. | 
| ManagedOperation | getManagedOperation(Method method)Implementations should return an instance of  ManagedOperationif the suppliedMethodhas the corresponding metadata. | 
| ManagedOperationParameter[] | getManagedOperationParameters(Method method)Implementations should return an array of  ManagedOperationParameterif the suppliedMethodhas the corresponding metadata. | 
| ManagedResource | getManagedResource(Class<?> beanClass)Implementations should return an instance of  ManagedResourceif the suppliedClasshas the appropriate metadata. | 
| void | setBeanFactory(BeanFactory beanFactory)Callback that supplies the owning factory to a bean instance. | 
public void setBeanFactory(BeanFactory beanFactory)
BeanFactoryAwareInvoked after the population of normal bean properties
 but before an initialization callback such as
 InitializingBean.afterPropertiesSet() or a custom init-method.
setBeanFactory in interface BeanFactoryAwarebeanFactory - owning BeanFactory (never null).
 The bean can immediately call methods on the factory.BeanInitializationException@Nullable public ManagedResource getManagedResource(Class<?> beanClass) throws InvalidMetadataException
JmxAttributeSourceManagedResource
 if the supplied Class has the appropriate metadata.
 Otherwise should return null.getManagedResource in interface JmxAttributeSourcebeanClass - the class to read the attribute data fromnull if not foundInvalidMetadataException - in case of invalid attributes@Nullable public ManagedAttribute getManagedAttribute(Method method) throws InvalidMetadataException
JmxAttributeSourceManagedAttribute
 if the supplied Method has the corresponding metadata.
 Otherwise should return null.getManagedAttribute in interface JmxAttributeSourcemethod - the method to read the attribute data fromnull if not foundInvalidMetadataException - in case of invalid attributes@Nullable public ManagedMetric getManagedMetric(Method method) throws InvalidMetadataException
JmxAttributeSourceManagedMetric
 if the supplied Method has the corresponding metadata.
 Otherwise should return null.getManagedMetric in interface JmxAttributeSourcemethod - the method to read the attribute data fromnull if not foundInvalidMetadataException - in case of invalid attributes@Nullable public ManagedOperation getManagedOperation(Method method) throws InvalidMetadataException
JmxAttributeSourceManagedOperation
 if the supplied Method has the corresponding metadata.
 Otherwise should return null.getManagedOperation in interface JmxAttributeSourcemethod - the method to read the attribute data fromnull if not foundInvalidMetadataException - in case of invalid attributespublic ManagedOperationParameter[] getManagedOperationParameters(Method method) throws InvalidMetadataException
JmxAttributeSourceManagedOperationParameter
 if the supplied Method has the corresponding metadata. Otherwise
 should return an empty array if no metadata is found.getManagedOperationParameters in interface JmxAttributeSourcemethod - the Method to read the metadata fromInvalidMetadataException - in the case of invalid attributes.public ManagedNotification[] getManagedNotifications(Class<?> clazz) throws InvalidMetadataException
JmxAttributeSourceManagedNotifications
 if the supplied the Class has the corresponding metadata. Otherwise
 should return an empty array.getManagedNotifications in interface JmxAttributeSourceclazz - the Class to read the metadata fromInvalidMetadataException - in the case of invalid metadata