Spring.Objects.Factory.Config.CustomConverterConfigurer.PostProcessObjectFactory C# (CSharp) Method

PostProcessObjectFactory() public method

Registers any custom converters with the supplied factory.
/// In case of errors. ///
public PostProcessObjectFactory ( IConfigurableListableObjectFactory factory ) : void
factory IConfigurableListableObjectFactory /// The object factory to register the converters with. ///
return void
		public override void PostProcessObjectFactory(
			IConfigurableListableObjectFactory factory)
		{
			if (_customConverters != null)
			{
				foreach (DictionaryEntry entry in _customConverters)
				{
					Type requiredType = ResolveRequiredType(entry.Key, "key", "custom type converter");
					TypeConverter converter = ResolveConverter(entry.Value);
					factory.RegisterCustomConverter(requiredType, converter);
				}
			}
		}

Usage Example

Esempio n. 1
0
        public void DontSupplyAnyCustomConverters()
        {
            CustomConverterConfigurer config = new CustomConverterConfigurer();

            config.CustomConverters = null;
            config.PostProcessObjectFactory(factory);
        }
All Usage Examples Of Spring.Objects.Factory.Config.CustomConverterConfigurer::PostProcessObjectFactory