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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...