Possible Duplicate:
What is Inversion of Control?
I'm really confused with the concept of dependency injection.
I'm very new to software field and I have a doubt on the following scenario. Let say I need a Json
parser class for my java code, So I'm adding the Json
jar when executing the java program using the classpath
argument. My program is dependent on Json
jar, so that it mean I'm doing a dependency injection here?
An another example will be, using import
statement does solve the problem of user class is depending on other class ( like Date
in java ) so all these are the concept of dependency injection?
Where I'm making the concept.
Thanks in advance.