[jboss-dev-forums] [Design of POJO Server] - Re: New KernelBus lookup failure

alesj do-not-reply at jboss.com
Thu Oct 4 06:49:58 EDT 2007


"adrian at jboss.org" wrote : Why don't you just change the KernelBus to use the getInstalledContext() on the controller rather than the KernelRegistry.
  | 
I'm already done with the change - since it was a minor one and I didn't know KernelRegistry was going away. :-(
But, yes, I can simply change KernelBus to look for installed contexts. :-)

"adrian at jboss.org" wrote : 
  | The only usecase now for the KernelRegistry is the KernelRegistryPlugin
  | or direct registration (currently only the basic kernel objects do this)
  | which are features that could be added to the controller anyway.
I added a BeanKernelRegistryEntry for those kernel objects in order to be able to use AttributeDispatchContext in ServiceInjectionValueMetaData (unifying the way we invoke propertys) - some Scott's code relies on invoking property on kernel objects.

  |    protected KernelRegistryEntry createKernelRegistryEntry(Kernel kernel, Object object) throws Throwable
  |    {
  |       KernelConfig config = kernel.getConfig();
  |       BeanInfo info = config.getBeanInfo(object.getClass());
  |       return new BeanKernelRegistryEntry(object, info);
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list