Code example for SimpleTypeConverter

0
 */ 
public class BeanFactoryTypeConverter implements TypeConverter, BeanFactoryAware {
 
	private static ConversionService defaultConversionService;
 
	private volatile SimpleTypeConverter delegate = new SimpleTypeConverter();
 
	private volatile boolean haveCalledDelegateGetDefaultEditor;
 
	private volatile ConversionService conversionService;
 
	/** 
	 * Instantiates a new bean factory type converter. 
	 */ 
	public BeanFactoryTypeConverter() { 
		synchronized (BeanFactoryTypeConverter.class) { 
			if (defaultConversionService == null) {
				defaultConversionService = new DefaultConversionService();
			} 
		}