Package org.jboss.deployers.client.spi

Examples of org.jboss.deployers.client.spi.DeploymentFactory


      checkDeployment(context, deployment);
   }

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


      checkDeployment(context, deployment);
   }

   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

      return deployment;
   }

   protected Deployment createOrderedChildren(String... names) throws Exception
   {
      DeploymentFactory factory = getDeploymentFactory();
      Deployment deployment = createDeployment(factory);
      for (int i = 0; names != null && i < names.length; i++)
      {
         ContextInfo ctx = factory.addContext(deployment, "child" + names[i]);
         ctx.setRelativeOrder(i + 1);
      }
      return deployment;
   }
View Full Code Here

      checkDeployment(context, deployment);
   }

   protected Deployment createMetaDataLocation() throws Exception
   {
      DeploymentFactory factory = getDeploymentFactory();
      Deployment deployment = createDeployment();
      factory.addContext(deployment, "", ContextInfo.DEFAULT_METADATA_PATH, DeploymentFactory.createClassPath(""));
      return deployment;
   }
View Full Code Here

      checkDeployment(context, deployment);
   }

   protected Deployment createClasspathEntries() throws Exception
   {
      DeploymentFactory factory = getDeploymentFactory();
      Deployment deployment = createDeployment();
      ContextInfo contextInfo = factory.addContext(deployment, "");
      contextInfo.addClassPathEntry(DeploymentFactory.createClassPathEntry("cp1.txt"));
      contextInfo.addClassPathEntry(DeploymentFactory.createClassPathEntry("cp2.txt"));
      return deployment;
   }
View Full Code Here

   {
      TestClassLoaderDeployer deployer = new TestClassLoaderDeployer();
      DeployerClient main = createMainDeployer(deployer);
     
      Deployment deployment = createSimpleDeployment("top");
      DeploymentFactory factory = new DeploymentFactory();
      factory.addContext(deployment, "sub");
      main.addDeployment(deployment);
      main.process();
     
      DeploymentContext top = assertDeploymentContext(main, "top");
      DeploymentContext sub = assertDeploymentContext(main, "top/sub");
View Full Code Here

   }

   @Override
   protected DeploymentFactory createDeploymentFactory()
   {
      return new DeploymentFactory();
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.client.spi.DeploymentFactory

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.