spring-framework / org.springframework.beans / PropertyMatches / forProperty

forProperty

open static fun forProperty(propertyName: String, beanClass: Class<*>): PropertyMatches

Create PropertyMatches for the given bean property.

Parameters

propertyName - the name of the property to find possible matches for

beanClass - the bean class to search for matches

open static fun forProperty(propertyName: String, beanClass: Class<*>, maxDistance: Int): PropertyMatches

Create PropertyMatches for the given bean property.

Parameters

propertyName - the name of the property to find possible matches for

beanClass - the bean class to search for matches

maxDistance - the maximum property distance allowed for matches