public void Configure(ControllerConfigurationSettings module) { if (Factory != null) { Type type = String.IsNullOrEmpty(Factory.FactoryType) ? typeof(DefaultControllerFactory) : Type.GetType(Factory.FactoryType, true, true); IControllerFactory factory = CreateControllerFactory(type); factory.Init(Factory.Parameters); module.Factory = factory; } if (Mappings != null) { foreach (ControllerMappingConfigurationElement map in Mappings) { module.Mappings.Add(map.Name, Type.GetType(map.ControllerType, true, true)); } } if (FilterProviders != null) { foreach (FilterProviderConfigurationElement elem in FilterProviders) { IFilterProvider provider = CreateFilterProvider( Type.GetType(elem.ProviderType, true, true)); provider.Init(elem.Parameters); module.FilterProviders.Add(provider); } } }