Hi,
I have the following code.
1. ProductCreator class that holds the static factory method to create a bean
2. bean declarations in the config file
As can be seen from the config file, while bean creation time, factory method from the class is invoked creating a bean based on constructor args. All fine and understood how it works.
The question is: Why? What is the purpose of doing it this way? Wasn't the whole point of IoC to decouple the components and get rid of
new someClass() statements in code?
Comments welcome. I know I might be wrong/uninformed, but I seek enlightenment
Suhas.