Is it possible to have multiple Typed factories in windsor but with 
different component selectors?

This is how we register our single typed factory currently:

container.AddFacility<TypedFactoryFacility>();
container.Register(Component.For<ITypedFactoryComponentSelector>().ImplementedBy<ComponentIdComponentSelector>());
 container.Register(
                Component.For<ILookupFormatterFactory>().LifeStyle.Transient
                .AsFactory(c => 
c.SelectedWith<ComponentIdComponentSelector>()) //Note we must overide 
default selector so we can select by component id
            );  

How would you register in the case that you had multiple typed factories 
but with different component selectors?


-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/castle-project-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to