spring-framework / org.springframework.jmx.export.metadata / JmxAttributeSource / getManagedMetric

getManagedMetric

@Nullable abstract fun getManagedMetric(method: Method): ManagedMetric

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

Exceptions

InvalidMetadataException - in case of invalid attributes

Return
the metric, or null if not found