private PropertyEditor getPropertyEditor()

in spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/BindConverter.java [233:250]


		private PropertyEditor getPropertyEditor(Class<?> type) {
			if (type == null || type == Object.class || Collection.class.isAssignableFrom(type)
					|| Map.class.isAssignableFrom(type)) {
				return null;
			}
			SimpleTypeConverter typeConverter = this.typeConverter;
			PropertyEditor editor = typeConverter.getDefaultEditor(type);
			if (editor == null) {
				editor = typeConverter.findCustomEditor(type, null);
			}
			if (editor == null && String.class != type) {
				editor = BeanUtils.findEditorByConvention(type);
			}
			if (editor == null || EXCLUDED_EDITORS.contains(editor.getClass())) {
				return null;
			}
			return editor;
		}