Can\'t all factory methods be static ? Does something that produces a product need state ? When is it appropriate to go for a instance factory or static factory method ? Ca
My current preference is to make factory methods not static for the sake of easier testing. You can't change a static factory method call at runtime, whereas if I could provide a factory implementation to the object then I could test it more thoroughly as I'm in more control of the context and object graph.