A framework class, usually called the
dependency container, could analyze the
dependencies of this class. With this analysis it is able to create an instance of the class and
inject the objects into the defined
dependencies, via
Java reflection. ... If
dependency injection is used, a
Java class can be tested in isolation.
read more >>