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

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


I'm trying to apply IoC annotations to beans that only get their BeanInfo available in InstantiateAction.


  |          if (info == null)
  |          {
  |             info = configurator.getBeanInfo(object.getClass(), metaData.getAccessMode());
  |             context.setBeanInfo(info);
  |             // handle custom annotations
  |             applyAnnotations(context);
  |          }
  | 

But I'm missing class scope (CommonLevels.CLASS) if the bean has no bean attribute defined in BeanMetaData, meaning it's gonna be constructed from some factory.
Hence none of the class annotations are found in metadata.

What's the way to update ScopeInfo/MetaData with class information?

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

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



More information about the jboss-dev-forums mailing list