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

getManagedAttribute

@Nullable abstract fun getManagedAttribute(method: Method): ManagedAttribute

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

Exceptions

InvalidMetadataException - in case of invalid attributes

Return
the attribute, or null if not found