spring-framework / org.springframework.jmx.support / JmxUtils / getAttributeName

getAttributeName

open static fun getAttributeName(property: PropertyDescriptor, useStrictCasing: Boolean): String

Return the JMX attribute name to use for the given JavaBeans property.

When using strict casing, a JavaBean property with a getter method such as getFoo() translates to an attribute called Foo. With strict casing disabled, getFoo() would translate to just foo.

Parameters

property - the JavaBeans property descriptor

useStrictCasing - whether to use strict casing

Return
the JMX attribute name to use