[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Annotation processing

alesj do-not-reply at jboss.com
Tue Sep 4 10:22:02 EDT 2007


"alesj" wrote : 
  | Perhaps put in in the MetaData under 'ControllerContext.name' name?
  | And push in/out this info in KernelControllerContextAction.dispatchJoinPoint invocation?
  | Or just simply put in in for good when we first create MetaData for context - in PreInstallAction?

Is doing this too hacky?


  |    protected void addMetaData(MutableMetaDataRepository repository, ControllerContext context, MemoryMetaDataLoader mutable)
  |    {
  |       mutable.addMetaData(ControllerContext.class.getSimpleName() + ".name", context.getName(), Object.class);
  |    }
  | 
  |    ...
  | 
  |       Object name = metaData.getMetaData("ControllerContext.name");
  |       if (name == null)
  |          return false;
  |       
  |       ScopeKey instanceKey = new ScopeKey(CommonLevels.INSTANCE, name.toString());
  | 
  | 

I'm passing all tests with this new getScopeMetaData/isEmpty impl. :-)

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

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



More information about the jboss-dev-forums mailing list