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

alesj do-not-reply at jboss.com
Mon Aug 11 09:58:46 EDT 2008


"adrian at jboss.org" wrote : 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());
  |   | 
  | 
The scoped controller is only known in PreInstallAction,
where ScopeInfo is created when ControllerContext is created.

And in order to get the annotations that actually define which scoped controller the bean belongs to,
you already need the INSTANCE value - see PreInstallAction.
Almost like chicken-n-egg. ;-)




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

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



More information about the jboss-dev-forums mailing list