Package org.jboss.deployers.client.spi

Examples of org.jboss.deployers.client.spi.DeploymentFactory.addContext()


      structure = assertStructureMetaData(deployment);
      assertContexts(structure, context1, context2);

      ContextInfo testContext = structure.getContext("path2");
     
      ContextInfo child1 = factory.addContext(testContext, "child1");
      assertEquals("child1", child1.getPath());
      assertDefaultNonPath(child1);

      ContextInfo child2 = factory.addContext(testContext, "child2");
      assertEquals("child2", child2.getPath());
View Full Code Here


     
      ContextInfo child1 = factory.addContext(testContext, "child1");
      assertEquals("child1", child1.getPath());
      assertDefaultNonPath(child1);

      ContextInfo child2 = factory.addContext(testContext, "child2");
      assertEquals("child2", child2.getPath());
      assertDefaultNonPath(child2);
     
      ContextInfo child3 = factory.addContext(testContext, "child3");
      assertEquals("child3", child3.getPath());
View Full Code Here

      ContextInfo child2 = factory.addContext(testContext, "child2");
      assertEquals("child2", child2.getPath());
      assertDefaultNonPath(child2);
     
      ContextInfo child3 = factory.addContext(testContext, "child3");
      assertEquals("child3", child3.getPath());
      assertDefaultNonPath(child3);

      assertContexts(structure, context1, context2);
      StructureMetaData childStructure = assertStructureMetaData(testContext);
View Full Code Here

   {
      URL url = getClass().getProtectionDomain().getCodeSource().getLocation();
      VirtualFile file = VFS.getRoot(url);
      VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(file);
      DeploymentFactory factory = new DeploymentFactory();
      factory.addContext(deployment, "");
      ((AbstractDeployment) deployment).setName(name);
      return deployment;
   }

   protected Class<?> assertLoadClass(ClassLoader start, Class<?> reference) throws Exception
View Full Code Here

   public void testNotVFSClassLoaderSmokeTest() throws Exception
   {
      DeploymentFactory factory = new DeploymentFactory();
     
      Deployment deployment = new AbstractDeployment("test");
      factory.addContext(deployment, "");
     
      DeployerClient main = assertBean("MainDeployer", DeployerClient.class);
      main.deploy(deployment);
      try
      {
View Full Code Here

      {
         ClassLoader cl5 = getClassLoader(unit5);
         assertGetResource("a/b/c/test-resource-deployment5", cl5);
        
         Deployment deployment = new AbstractDeployment("test");
         factory.addContext(deployment, "");
         ClassLoadingMetaDataFactory clmdf = ClassLoadingMetaDataFactory.getInstance();
         ClassLoadingMetaData clmd = new ClassLoadingMetaData();
         clmd.getRequirements().addRequirement(clmdf.createRequireModule("test5"));
         ((MutableAttachments) deployment.getPredeterminedManagedObjects()).addAttachment(ClassLoadingMetaData.class, clmd);
        
View Full Code Here

      StructureMetaData structure = StructureMetaDataFactory.createStructureMetaData();
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(StructureMetaData.class, structure);

      DeploymentFactory factory = getDeploymentFactory();
      factory.addContext(deployment, "");
      return deployment;
   }

   public void testSimpleWithAttachment() throws Exception
   {
View Full Code Here

      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(StructureMetaData.class, structure);
      attachments.addAttachment("test", "hello");

      DeploymentFactory factory = getDeploymentFactory();
      factory.addContext(deployment, "");
      return deployment;
   }

   public void testOneChild() throws Exception
   {
View Full Code Here

   protected Deployment createOneChild() throws Exception
   {
      DeploymentFactory factory = getDeploymentFactory();
      Deployment deployment = createDeployment(factory);
      factory.addContext(deployment, "child1");
      return deployment;
   }

   public void testManyChildren() throws Exception
   {
View Full Code Here

   protected Deployment createManyChildren() throws Exception
   {
      DeploymentFactory factory = getDeploymentFactory();
      Deployment deployment = createDeployment(factory);
      factory.addContext(deployment, "child1");
      factory.addContext(deployment, "child2");
      factory.addContext(deployment, "child3");
      return deployment;
   }
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.