Inversion of control, or as sometimes called, dependency injection, is about, in my opinion, deferring the relations setup between objects.
When one designs the model of an application, one usually comes up with interfaces and abstract classes on which relations are defined.
At runtime this relations are represented with references from a class instance to another class instance. So the problem appears of where and when instanciate the actual implementations and setup the references.
In my opinion IoC is about this. And so IoC must be a corner stone of every component enviroment.
So, we have here a management and configuration problem. Relations setup must be done through configuration and management.
That's why one is pointed toward jmx. And not by chance jmx in jdk1.5 has a relation services.
Is this the way? And how? |