I'm introducing an IoC Container in an architecture for the first time. I'm looking for things that one should not do with an IoC Container. I want to avoid the pitfalls of using an IoC container. I don't want to misuse or overuse it.
Can you help me put up a list of things to avoid when using a IoC container?
I have on item on my list so far:
- Don't let every class access the container (don't make it a public Singleton). Only a few top level classes should access the container.