I\'ve been playing around with Castle Windsor lately and realized I could use it to back a container-like object I currently use already. So far I\'ve only read information abou
I don't think it is such a good idea to have many independent containers. You may however want to have an application-wide mother container and child containers with more narrow scope.
You may use child kernels, probably? But I don't like the idea very much.
Personally, I don't have any problem using just one container. After all, your MonoRail controllers will only be aware of the services/interfaces they need so they don't need to know about the inner components of other tiers.
If you still don't want to make your inner components so visible to the rest of the app, here are a couple of ideas:
Whatever you do, you don't want to have every component accessing the container directly. If anything, keep it in your "glue code".