[jboss-dev-forums] [Design of POJO Server] - Re: Pushing correct aspect manager for a deployment

kabir.khan@jboss.com do-not-reply at jboss.com
Wed Aug 6 05:11:00 EDT 2008


I see TestMetaDataBeanDeployer from  JBDEPLOY-69 adds the metadata in a different way

  |    public void deploy(DeploymentUnit unit) throws DeploymentException
  |    {
  |       Scope applicationScope = unit.getScope().getScope(CommonLevels.APPLICATION);
  |       
  |       MemoryMetaDataLoader applicationMetaData = new MemoryMetaDataLoader(new ScopeKey(applicationScope));
  |       repository.addMetaDataRetrieval(applicationMetaData);
  |       
  |       applicationMetaData.addMetaData("test", this, TestMetaDataBeanDeployer.class);
  |    }
  | 

from what I have been doing


  |       unit.getMutableMetaData().addMetaData(scopedManager, AspectManager.class);
  | 

I will try that instead

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

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



More information about the jboss-dev-forums mailing list