Can Windsor do this?
Posted
by Marius
on Stack Overflow
See other posts from Stack Overflow
or by Marius
Published on 2010-04-20T06:05:18Z
Indexed on
2010/04/20
6:13 UTC
Read the original article
Hit count: 364
castle-windsor
Consider this example:
public class Factory
{
private List<ISubFactory> subFactories;
public Factory(List<ISubFactory> subFactories)
{
this.subFactories = subFactories;
}
}
public interface ISubFactory
{
}
I want Windsor to resolve the Factory class and put all implementers of the ISubFactory interface which are registered in the container (ResolveAll) into the "subFactories" parameter, can Windsor do this?
© Stack Overflow or respective owner