Package org.jboss.deployers.client.spi

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


   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;
   }

   protected Deployment createOrderedChildren(String... names) throws Exception
View Full Code Here


   {
      DeploymentFactory factory = getDeploymentFactory();
      Deployment deployment = createDeployment(factory);
      factory.addContext(deployment, "child1");
      factory.addContext(deployment, "child2");
      factory.addContext(deployment, "child3");
      return deployment;
   }

   protected Deployment createOrderedChildren(String... names) throws Exception
   {
View Full Code Here

   {
      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

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

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

   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

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.