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

alesj do-not-reply at jboss.com
Tue Oct 28 12:08:14 EDT 2008


"adrian at jboss.org" wrote : 
  | So another fix would be to somehow make the Deployer's ScopeBuilder
  | somehow aware of the class scope when it creates the component scope.
  | 
ScopeBuilder per attachment type?

  |    public static ScopeBuilder getScopeBuilder(DeploymentContext deploymentContext)
  |    {
  |       if (deploymentContext == null)
  |          throw new IllegalArgumentException("Null deployment context");
  |       ScopeBuilder builder = deploymentContext.getTransientAttachments().getAttachment(ScopeBuilder.class);
  |       if (builder != null)
  |          return builder;
  |       DeploymentContext parent = deploymentContext.getParent();
  |       if (parent != null)
  |          return getScopeBuilder(parent);
  |       return DefaultScopeBuilder.INSTANCE;
  |    }
  | 
Setting BeanMD aware ScopeBuilder?

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

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



More information about the jboss-dev-forums mailing list