[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: ClassLoader injection Scope issue

alesj do-not-reply at jboss.com
Tue Oct 28 11:51:42 EDT 2008


"adrian at jboss.org" wrote : 
  | I guess this is because it doesn't look like DefaultScopeBuilder in the deployers knows
  | anything about classes when creating component scopes?
  | It just adds the INSTANCE level to the DEPLOYMENT/APPLICATION
Yup, my guess would be we're then missing this

  |    public AbstractScopeInfo(Object name, String className)
  |    {
  |       if (name == null)
  |          throw new IllegalArgumentException("Null scope");
  | 
  |       ScopeKey scopeKey = ScopeKey.DEFAULT_SCOPE.clone();
  |       scopeKey.addScope(CommonLevels.INSTANCE, name.toString());
  |       if (className != null)
  |          scopeKey.addScope(CommonLevels.CLASS, className);
  |       setScope(scopeKey);
  |       setMutableScope(new ScopeKey(CommonLevels.INSTANCE, name.toString()));
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list