Interface JmxAttributeSource
- All Known Implementing Classes:
- AnnotationJmxAttributeSource
public interface JmxAttributeSource
Interface used by the 
MetadataMBeanInfoAssembler to
 read source-level metadata from a managed resource's class.- Since:
- 1.2
- Author:
- Rob Harrop, Jennifer Hickey
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiongetManagedAttribute(Method method) Implementations should return an instance ofManagedAttributeif the suppliedMethodhas the corresponding metadata.getManagedMetric(Method method) Implementations should return an instance ofManagedMetricif the suppliedMethodhas the corresponding metadata.getManagedNotifications(Class<?> clazz) Implementations should return an array ofManagedNotificationsif the suppliedClasshas the corresponding metadata.getManagedOperation(Method method) Implementations should return an instance ofManagedOperationif the suppliedMethodhas the corresponding metadata.getManagedOperationParameters(Method method) Implementations should return an array ofManagedOperationParametersif the suppliedMethodhas the corresponding metadata.getManagedResource(Class<?> clazz) Implementations should return an instance ofManagedResourceif the suppliedClasshas the corresponding metadata.
- 
Method Details- 
getManagedResourceImplementations should return an instance ofManagedResourceif the suppliedClasshas the corresponding metadata.- Parameters:
- clazz- the class to read the resource data from
- Returns:
- the resource, or nullif not found
- Throws:
- InvalidMetadataException- in case of invalid metadata
 
- 
getManagedAttributeImplementations should return an instance ofManagedAttributeif the suppliedMethodhas the corresponding metadata.- Parameters:
- method- the method to read the attribute data from
- Returns:
- the attribute, or nullif not found
- Throws:
- InvalidMetadataException- in case of invalid metadata
 
- 
getManagedMetricImplementations should return an instance ofManagedMetricif the suppliedMethodhas the corresponding metadata.- Parameters:
- method- the method to read the metric data from
- Returns:
- the metric, or nullif not found
- Throws:
- InvalidMetadataException- in case of invalid metadata
 
- 
getManagedOperationImplementations should return an instance ofManagedOperationif the suppliedMethodhas the corresponding metadata.- Parameters:
- method- the method to read the operation data from
- Returns:
- the operation, or nullif not found
- Throws:
- InvalidMetadataException- in case of invalid metadata
 
- 
getManagedOperationParameters@Nullable ManagedOperationParameter[] getManagedOperationParameters(Method method) throws InvalidMetadataException Implementations should return an array ofManagedOperationParametersif the suppliedMethodhas the corresponding metadata.- Parameters:
- method- the- Methodto read the metadata from
- Returns:
- the parameter information, or an empty array if no metadata is found
- Throws:
- InvalidMetadataException- in case of invalid metadata
 
- 
getManagedNotifications@Nullable ManagedNotification[] getManagedNotifications(Class<?> clazz) throws InvalidMetadataException Implementations should return an array ofManagedNotificationsif the suppliedClasshas the corresponding metadata.- Parameters:
- clazz- the- Classto read the metadata from
- Returns:
- the notification information, or an empty array if no metadata is found
- Throws:
- InvalidMetadataException- in case of invalid metadata
 
 
-