Examples of ScopeInfo


Examples of org.jboss.dependency.spi.ScopeInfo

   }

   public void addMetaData(ControllerContext context)
   {
      MutableMetaDataRepository repository = getMetaDataRepository();
      ScopeInfo scopeInfo = context.getScopeInfo();
      scopeInfo.addMetaData(repository, context);
   }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

   }

   public void removeMetaData(ControllerContext context)
   {
      MutableMetaDataRepository repository = getMetaDataRepository();
      ScopeInfo scopeInfo = context.getScopeInfo();
      scopeInfo.removeMetaData(repository, context);
   }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

    * @return the retrieval
    */
   protected MetaDataRetrieval initMetaDataRetrieval(ControllerContext context)
   {
      MutableMetaDataRepository repository = getMetaDataRepository();
      ScopeInfo scopeInfo = context.getScopeInfo();
      ScopeKey scopeKey = scopeInfo.getScope();
      ArrayList<MetaDataRetrieval> retrievals = new ArrayList<MetaDataRetrieval>();
      for (Scope scope : scopeKey.getScopes())
      {
         ScopeKey thisScope = new ScopeKey(scope);
         MetaDataRetrieval retrieval = repository.getMetaDataRetrieval(thisScope);
         if (retrieval == null)
         {
            retrieval = scopeInfo.initMetaDataRetrieval(repository, context, scope);
            if (retrieval == null)
            {
               retrieval = new MemoryMetaDataLoader(thisScope);
               repository.addMetaDataRetrieval(retrieval);
            }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

      attachments.addAttachment("KernelDeployerTest", deployment);
     
      assertDeploy(context);
      ControllerContext ctx = controller.getInstalledContext("Test");

      ScopeInfo scopeInfo = ctx.getScopeInfo();
     
      MainDeployerStructure mds = (MainDeployerStructure) main;
      DeploymentUnit unit = mds.getDeploymentUnit("KernelDeployerTest", true);
      DeploymentUnit component = unit.getComponent("Test");
      assertScopeKeys(component.getScope(), scopeInfo.getScope());
      assertScopeKeys(component.getMutableScope(), scopeInfo.getMutableScope());
     
      MetaData md = ctx.getScopeInfo().getMetaData();
      assertEquals(testMetaDataDeployer, md.getMetaData("test"));
      assertEquals(testInstanceMetaDataDeployer, md.getMetaData("instance"));
     
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

      this.underlyingController = underlyingController;
   }

   protected void preAliasInstall(ControllerContext aliasContext)
   {
      ScopeInfo scopeInfo = aliasContext.getScopeInfo();
      scopeInfo.setInstallScope(scopeKey);
   }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

         {
            log.debug("Unable to retrieve classloader for deployment: " + unit.getName() + " reason=" + e.toString());
         }
      }
      KernelControllerContext context = new AbstractKernelControllerContext(null, deployment, null);
      ScopeInfo scopeInfo = context.getScopeInfo();
      scopeInfo.setScope(unit.getScope());
      scopeInfo.setMutableScope(unit.getMutableScope());
      try
      {
         controller.install(context);
      }
      catch (Throwable t)
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

               log.debug("Unable to retrieve classloader for deployment: " + unit.getName() + " reason=" + e.toString());
            }
         }
         KernelControllerContext context = new AbstractKernelControllerContext(null, deployment, null);
         //Make sure that the metadata from the deployment gets put into the context
         ScopeInfo scopeInfo = context.getScopeInfo();
         if (scopeInfo != null)
         {
            mergeScopes(scopeInfo.getScope(), unit.getScope());
            mergeScopes(scopeInfo.getMutableScope(), unit.getMutableScope());
         }
        
         try
         {
            //System.out.println("==============> Installing " + context.getName());
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

      return dependencyInfo != null ? new UnmodifiableDependencyInfo(dependencyInfo) : null;
   }

   public ScopeInfo getScopeInfo()
   {
      ScopeInfo scopeInfo = delegate.getScopeInfo();
      return scopeInfo != null ? new UnmodifiableScopeInfo(scopeInfo) : null;
   }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

/*  66 */     return dependencyInfo != null ? new UnmodifiableDependencyInfo(dependencyInfo) : null;
/*     */   }
/*     */
/*     */   public ScopeInfo getScopeInfo()
/*     */   {
/*  71 */     ScopeInfo scopeInfo = this.delegate.getScopeInfo();
/*  72 */     return scopeInfo != null ? new UnmodifiableScopeInfo(scopeInfo) : null;
/*     */   }
View Full Code Here

Examples of org.jboss.dependency.spi.ScopeInfo

/*     */   }
/*     */
/*     */   public void addMetaData(ControllerContext context)
/*     */   {
/*  71 */     MutableMetaDataRepository repository = getMetaDataRepository();
/*  72 */     ScopeInfo scopeInfo = context.getScopeInfo();
/*  73 */     scopeInfo.addMetaData(repository, context);
/*     */   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.