6 Replies Latest reply on Jul 6, 2003 6:05 PM by shareme

    Container's hype

      I see these days a lot of interest for container development. It seems that, like for AOP, every one is developing its own container, each one claiming that his container his the best (otherwise why not reuse another container instead of reinventing the wheel)

      The last one I saw is picocontainer (http://www.picocontainer.org). They say to implement IOC type 3. That means Inversion Of Control type 3, type 3 means they use the following pattern to identify dependency between components.

      The rule is to provide one constructor (and only one) per class that want to be a component. The component will thus depends from these identified components.

      for instance with class A {}, class B { public B(A a) {...} } :

      PicoContainer pc = new PicoContainerImpl();
      pc.register(A.class);
      pc.register(B.class);
      pc.start();

      That's very minimalist, will they go further ?

      Anyway, my thought is that container developers are missing key points.

      Unlike JMX they cannot hot replace components.

      It seems also that they don't have an advanced loading mechanism.

      It seems that they focus a little bit too much on component dependencies and the pattern Inversion Of Control, and plenty of blah blah blah my container is beautifull.

      Maybe I am going to develop my own Container. I have to be original. I will develop the idea I used once when I talked about the RandomInterceptor that made laugh people, that interceptor forwards the call randomly to the successor. There are some ideas to exploit in there I am sure. Then I will blog that my container is the best. Of course, I will not forget to plug an exotic AOP framework within it, to be fully hype certified.

      julien