[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Missing class scope in InstantiateAction

alesj do-not-reply at jboss.com
Tue Mar 25 08:59:00 EDT 2008


"alesj" wrote : 
  | What's the way to update ScopeInfo/MetaData with class information?


  |             ScopeInfo scopeInfo = context.getScopeInfo();
  |             ScopeKey scopeKey = new ScopeKey();
  |             for (Scope scope : scopeInfo.getScope().getScopes())
  |                scopeKey.addScope(scope);
  |             scopeKey.addScope(CommonLevels.CLASS, info.getClassInfo().getType());
  |             scopeInfo.setScope(scopeKey);
  | 
  | 

OK, adding this after the BeanInfo has been set helps, since the metadata 'repairs' itself.
But is this the right way? :-)

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

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



More information about the jboss-dev-forums mailing list