public class

AnnotationJmxAttributeSource

extends Object
implements JmxAttributeSource
java.lang.Object
   ↳ org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource

Class Overview

Implementation of the JmxAttributeSource interface that reads JDK 1.5+ annotations and exposes the corresponding attributes.

Summary

Public Constructors
AnnotationJmxAttributeSource()
Public Methods
ManagedAttribute getManagedAttribute(Method method)
Implementations should return an instance of ManagedAttribute if the supplied Method has the corresponding metadata.
ManagedMetric getManagedMetric(Method method)
Implementations should return an instance of ManagedMetric if the supplied Method has the corresponding metadata.
ManagedNotification[] getManagedNotifications(Class<?> clazz)
Implementations should return an array of ManagedNotifications if the supplied the Class has the corresponding metadata.
ManagedOperation getManagedOperation(Method method)
Implementations should return an instance of ManagedOperation if the supplied Method has the corresponding metadata.
ManagedOperationParameter[] getManagedOperationParameters(Method method)
Implementations should return an array of ManagedOperationParameter if the supplied Method has the corresponding metadata.
ManagedResource getManagedResource(Class<?> beanClass)
Implementations should return an instance of ManagedResource if the supplied Class has the appropriate metadata.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.jmx.export.metadata.JmxAttributeSource

Public Constructors

public AnnotationJmxAttributeSource ()

Public Methods

public ManagedAttribute getManagedAttribute (Method method)

Implementations should return an instance of ManagedAttribute if the supplied Method has the corresponding metadata. Otherwise should return null.

Parameters
method the method to read the attribute data from
Returns
  • the attribute, or null if not found

public ManagedMetric getManagedMetric (Method method)

Implementations should return an instance of ManagedMetric if the supplied Method has the corresponding metadata. Otherwise should return null.

Parameters
method the method to read the attribute data from
Returns
  • the metric, or null if not found

public ManagedNotification[] getManagedNotifications (Class<?> clazz)

Implementations should return an array of ManagedNotifications if the supplied the Class has the corresponding metadata. Otherwise should return an empty array.

Parameters
clazz the Class to read the metadata from
Returns
  • the notification information

public ManagedOperation getManagedOperation (Method method)

Implementations should return an instance of ManagedOperation if the supplied Method has the corresponding metadata. Otherwise should return null.

Parameters
method the method to read the attribute data from
Returns
  • the attribute, or null if not found

public ManagedOperationParameter[] getManagedOperationParameters (Method method)

Implementations should return an array of ManagedOperationParameter if the supplied Method has the corresponding metadata. Otherwise should return an empty array if no metadata is found.

Parameters
method the Method to read the metadata from
Returns
  • the parameter information.

public ManagedResource getManagedResource (Class<?> beanClass)

Implementations should return an instance of ManagedResource if the supplied Class has the appropriate metadata. Otherwise should return null.

Parameters
beanClass the class to read the attribute data from
Returns
  • the attribute, or null if not found