castle-windsortyped-factory-facility

Configure a castle windsor TypedFactory with custom selector via xml?


I have the following configuration:

container.AddFacility<TypedFactoryFacility>()
         .Register(Component.For<IMyFactory>()
                            .AsFactory(c => c.SelectedWith(new MyFactoryComponentSelector())));

The problem is that I need to configure it with xml. Is there an equivalent xml configuration?


Solution

  • No there isn't. Why do that via xml? Why expose implementation details of your application to the outside world?