[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Bean instantiate order with contextual injection

adrian@jboss.org do-not-reply at jboss.com
Mon Aug 14 08:55:31 EDT 2006


Additionally, please don't modify any "spi" interfaces
without discussing it first.

This change in Controller

"
   /**
    * @return all instantiated contexts whose target is instance of this class clazz param
    */
   Set getInstantiatedContexts(Class clazz);

   /**
    * add instantiated context into contextsByClass map
    * look at all target's superclasses and interfaces
    */
   void addInstantiatedContext(ControllerContext context);

   /**
    * remove instantiated context from contextsByClass map
    * look at all target's superclasses and interfaces
    */
   void removeInstantiatedContext(ControllerContext context);
"

Should be a private implementation api not a public api.
See for example AbstractKernelController add/removeSupplies.

Additionally the Controller in dependency is an abstract model.
It has no notion of "instantiate" beyond the state model that
is plugged as an implementation detail.

Neither does it have any notion of "java.lang.Class".
It manages contexts which can be anything.
It is only the KernelController that introduces the notion of POJO.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964953#3964953

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964953



More information about the jboss-dev-forums mailing list