spring-framework / org.springframework.beans / PropertyAccessor / getPropertyValue

getPropertyValue

@Nullable abstract fun getPropertyValue(propertyName: String): Any

Get the current value of the specified property.

Parameters

propertyName - the name of the property to get the value of (may be a nested path and/or an indexed/mapped property)

Exceptions

InvalidPropertyException - if there is no such property or if the property isn't readable

PropertyAccessException - if the property was valid but the accessor method failed

Return
the value of the property