views:

105

answers:

1

specifically, will working with containers as opposed to the static ObjectFactory let me keep multiple concurrent configurations, or are containers singletons?

+1  A: 

Containers are only Singletons if they are static. There are lots of issues with static types, particularly with regards to Testability, so I definitely prefer working with container instances myself.

Mark Seemann
so two containers will keep two separate model definitions?
kolosy
@kolosy: Yes, if you configure them differently :)
Mark Seemann