public Object getObject ( ) throws Exception { if ( converterConfigList == null ) { throw new FactoryBeanNotInitializedException ( "converterConfigList has not been set" ) ; } ConverterManagerImpl result = new ConverterManagerImpl ( ) ; for ( ConverterConfig converterConfig : converterConfigList ) { if ( converterConfig . fromClasses == null || converterConfig . toClasses == null || converterConfig . converter == null ) { throw new FactoryBeanNotInitializedException ( String . format ( "All of fromClasses, toClasses and converter must be specified in bean %1$s" , converterConfig . toString ( ) ) ) ; } for ( Class < ? > fromClass : converterConfig . fromClasses ) { for ( Class < ? > toClass : converterConfig . toClasses ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( String . format ( "Adding converter from %1$s to %2$s" , fromClass , toClass ) ) ; } result . addConverter ( fromClass , converterConfig . syntax , toClass , converterConfig . converter ) ; } } } return result ; }
Creates a ConverterManagerImpl populating it with Converter instances from the converterConfigList property .