Code example for TypeDescriptor

0
 
		DataBinder binder = binderFactory.createBinder(request, null, attributeName); 
		ConversionService conversionService = binder.getConversionService(); 
		if (conversionService != null) { 
			TypeDescriptor source = TypeDescriptor.valueOf(String.class); 
			TypeDescriptor target = new TypeDescriptor(parameter); 
			if (conversionService.canConvert(source, target)) { 
				return binder.convertIfNecessary(sourceValue, parameter.getParameterType(), parameter); 
			} 
		} 
		return null; 
	} 
 
	/** 
	 * This implementation downcasts {@link WebDataBinder} to 
	 * {@link ServletRequestDataBinder} before binding. 
	 * @see ServletRequestDataBinderFactory 
	 */ 
	@Override 
	protected void bindRequestParameters(WebDataBinder binder, NativeWebRequest request) { 
Contextual code suggestions in your IDE  Get Codota for Java