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

getManagedResource

@Nullable abstract fun getManagedResource(clazz: Class<*>): ManagedResource

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

Parameters

clazz - the class to read the attribute data from

Exceptions

InvalidMetadataException - in case of invalid attributes

Return
the attribute, or null if not found