Wiring Up Generics In Castle Windsor

I’m working with a new team that has a slightly different technology stack then I’m used to. On most projects where I am the team lead, StructureMap is my IOC container of choice. I’ve always thought that this was just laziness on my part because I can wire up most things very quickly. Now I’m beginning to think that SM has spoiled me

I like to take advantage of open generic mapping that most of the popular containers support. In this particular case, I’ve got a Generic Validator that takes in a different array of validations for a given type.

@James
I saw the ArrayResolver and a couple of examples with it, and I started with the open generic.
How would I wire up DIFFERENT arrays using that notation?

http://kozmic.pl Krzysztof Kozmic

John,

It would be beneficial if you shared your thoughts on friction points in Windsor as compared to SM, or features you find working better in SM…

Probably the best place for that would be castle users/developers group on google.

cheers,
Krzysztof

http://www.lostechies.com/members/jcteague/default.aspx jcteague

Thank Krzysztof. I’m sure most of the friction is just learning a new tool. There have been a few things that have come up that the team wasn’t sure how to do with Windsor that I knew how to do with SM. I’ll be sure and share those.