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

forField

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

Create PropertyMatches for the given field property.

Parameters

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

beanClass - the bean class to search for matches

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

Create PropertyMatches for the given field property.

Parameters

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

beanClass - the bean class to search for matches

maxDistance - the maximum property distance allowed for matches