@ SuppressWarnings ( "unused" ) @ Internal @ UsedByGeneratedCode protected final < T1 > Optional < T1 > getValueForPath ( BeanResolutionContext resolutionContext , BeanContext context , Argument < T1 > propertyType , String ... propertyPath ) { if ( context instanceof PropertyResolver ) { PropertyResolver propertyResolver = ( PropertyResolver ) context ; Class < ? > beanType = getBeanType ( ) ; String pathString = propertyPath . length > 1 ? String . join ( "." , propertyPath ) : propertyPath [ 0 ] ; String valString = resolvePropertyPath ( resolutionContext , pathString ) ; return propertyResolver . getProperty ( valString , ConversionContext . of ( propertyType ) ) ; } return Optional . empty ( ) ; }
Resolve a value for the given field of the given type and path .