The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 A Brief Introduction to IoC
Subject:  deferred relations setup
Date:  2004-02-11 09:45:16
From:  samnewman
Response to: deferred relations setup


I do not think it is about deferred setup, although this can be achived using IoC. At its heart it is about a component saying "I need this" and being given it. IoC can also be used for lifecycle control - a component says "I have a lifecycle" and the IoC framework can then manipulate it accordingly.
JMX is certainly a kind of IoC container, however it is kind of a hybrid type 1/type 2 container. Some interfaces need implementing, other operations are carried out using introspection of the classes. Some people are keeping their components (read: JMX beans) generic, and are then using a pure IoC container to wrap the component and present it as a JMX bean to the JMX server. In that way you can work with the JMX servers out there but keep your code nice and clean.

 Feed java.net RSS Feeds