Package org.jboss.deployers.spi.structure

Examples of org.jboss.deployers.spi.structure.ContextInfo


      checkAttachments(context, deployment);

      assertNotNull(structure);
      checkDeployment(context, structure);

      ContextInfo contextInfo = structure.getContext("");
      assertNotNull(contextInfo);
      checkContextInfo(context, contextInfo);
   }
View Full Code Here


      assertEquals("Should have the same number contexts=" + contextInfos + " children=" + children, numContexts, numChildren);
     
      for (DeploymentContext childContext : children)
      {
         ContextInfo contextInfo = structure.getContext(childContext.getRelativePath());
         assertNotNull("Should have a context info " + childContext + " in " + contextInfos, contextInfo);
         checkDeployment(context.getName(), childContext, contextInfo);
      }
   }
View Full Code Here

      if (obj == this)
         return true;
      if (obj == null || obj instanceof ContextInfo == false)
         return false;
     
      ContextInfo other = (ContextInfo) obj;
      if (getPath().equals(other.getPath()) == false)
         return false;

      String thisMetaDataPath = getMetaDataPath();
      String otherMetaDataPath = other.getMetaDataPath();
      if (thisMetaDataPath == null)
         return otherMetaDataPath == null;
      if (thisMetaDataPath.equals(otherMetaDataPath) == false)
         return false;

      List<ClassPathEntry> thisClassPath = getClassPath();
      List<ClassPathEntry> otherClassPath = other.getClassPath();
      if (thisClassPath == null)
         return otherClassPath == null;
      return thisClassPath.equals(otherClassPath);
   }
View Full Code Here

      DeployerClient deployer = getMainDeployer();

      Deployment deployment = createSimpleDeployment("top");
      addClassLoadingMetaData(deployment, "top", null, A.class);
     
      ContextInfo sub = addChild(deployment, "sub");
      addClassLoadingMetaData(sub, "top/sub", null, A.class, B.class);
     
      DeploymentUnit unit = assertDeploy(deployer, deployment);
      assertDomain("top/sub");
     
View Full Code Here

      Deployment deployment = createSimpleDeployment("top");
      ClassLoadingMetaData top = addClassLoadingMetaData(deployment, "top", null, A.class);
      top.setImportAll(true);
     
      ContextInfo sub = addChild(deployment, "sub");
      ClassLoadingMetaData topSub = addClassLoadingMetaData(sub, "top/sub", null, false, B.class);
      topSub.setDomain(ClassLoaderSystem.DEFAULT_DOMAIN_NAME);
      topSub.setParentDomain(ClassLoaderSystem.DEFAULT_DOMAIN_NAME);
      topSub.setImportAll(true);
     
View Full Code Here

      Deployment deployment = createSimpleDeployment("top");
      ClassLoadingMetaData top = addClassLoadingMetaData(deployment, "top", null, A.class);
      top.setImportAll(true);
     
      ContextInfo sub = addChild(deployment, "sub");
      ClassLoadingMetaData topSub = addClassLoadingMetaData(sub, "top/sub", null, false, B.class);
      topSub.setDomain("TestDomain");
      topSub.setParentDomain(ClassLoaderSystem.DEFAULT_DOMAIN_NAME);
      topSub.setImportAll(true);
     
View Full Code Here

      DeployerClient deployer = getMainDeployer();

      Deployment deployment = createSimpleDeployment("top");
      addClassLoadingMetaData(deployment, "top", null, A.class);
     
      ContextInfo sub1 = addChild(deployment, "sub1");
      addClassLoadingMetaData(sub1, "top/sub1", null, B.class);
     
      ContextInfo sub2 = addChild(deployment, "sub2");
      addClassLoadingMetaData(sub2, "top/sub2", null, B.class);
     
      DeploymentUnit unit = assertDeploy(deployer, deployment);
      assertDomain("top/sub1");
      assertDomain("top/sub2");
View Full Code Here

      DeployerClient deployer = getMainDeployer();

      Deployment deployment = createSimpleDeployment("top");
      addClassLoadingMetaData(deployment, "top", null, A.class);
     
      ContextInfo sub = addChild(deployment, "sub");
      ClassLoadingMetaData clmd = addClassLoadingMetaData(sub, "top/sub", null, A.class, B.class);
      clmd.setJ2seClassLoadingCompliance(false);
     
      DeploymentUnit unit = assertDeploy(deployer, deployment);
      assertDomain("top/sub");
View Full Code Here

      DeployerClient deployer = getMainDeployer();

      Deployment deployment = createSimpleDeployment("top");
      addClassLoadingMetaData(deployment, "top", null);
     
      ContextInfo sub1 = addChild(deployment, "sub1");
      ClassLoadingMetaData topSub1 = addClassLoadingMetaData(sub1, "top/sub1", null, A.class);
      topSub1.setDomain("TestDomain");
      topSub1.setParentDomain(ClassLoaderSystem.DEFAULT_DOMAIN_NAME);
      topSub1.setImportAll(true);
     
      ContextInfo sub2 = addChild(deployment, "sub2");
      ClassLoadingMetaData topSub2 = addClassLoadingMetaData(sub2, "top/sub2", null, B.class);
      topSub2.setDomain("TestDomain");
      topSub2.setParentDomain(ClassLoaderSystem.DEFAULT_DOMAIN_NAME);
      topSub2.setImportAll(true);
     
View Full Code Here

      this.webInfLibFilter = webInfLibFilter;
   }

   public boolean determineStructure(StructureContext structureContext) throws DeploymentException
   {
      ContextInfo context = null;
      VirtualFile file = structureContext.getFile();
      try
      {
         boolean trace = log.isTraceEnabled();
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.structure.ContextInfo

Copyright © 2018 www.massapicom. 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.