[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMICROCONT-330 - Preconfigured MDR and scopes

adrian@jboss.org do-not-reply at jboss.com
Mon Aug 11 09:31:02 EDT 2008


You need to change the name of the INSTANCE scope for scoped beans
to include something that identifies the scoped controller, e.g.


  | new ScopeKey(CommonLevels.INSTANCE, scopedController.getScopeID() + "/" name.toString());
  | 

It should be something predictable - not hashCode().

You also need to be able to do this ahead of time in the deployers
so people can populate the instance scope before controller context exists.

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

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



More information about the jboss-dev-forums mailing list