Maarten Bosteels wrote:
I really dislike singletons. At least when they have state.When I create a new SimpleServiceRegistry instance, I know exactly which classes have access to it.And unrelated code is not able to mock around with my services.
Seconded!
I really prefer the type-safety of setters, and the associated javadoc.
Seconded! -0xe1a
