Package org.jboss.deployers.client.spi

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


      return deployment;
   }

   public void testSimpleWithAttachment() throws Exception
   {
      Deployment deployment = createSimpleWithAttachment();
      DeploymentContext context = build(deployment);
      checkDeployment(context, deployment);
   }
View Full Code Here


      checkDeployment(context, deployment);
   }

   protected Deployment createSimpleWithAttachment() throws Exception
   {
      Deployment deployment = createDeployment();
      StructureMetaData structure = StructureMetaDataFactory.createStructureMetaData();
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(StructureMetaData.class, structure);
      attachments.addAttachment("test", "hello");

      DeploymentFactory factory = getDeploymentFactory();
      factory.addContext(deployment, "");
View Full Code Here

      return deployment;
   }

   public void testOneChild() throws Exception
   {
      Deployment deployment = createOneChild();
      DeploymentContext context = build(deployment);
      checkDeployment(context, deployment);
   }
View Full Code Here

   }

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

      return deployment;
   }

   public void testManyChildren() throws Exception
   {
      Deployment deployment = createManyChildren();
      DeploymentContext context = build(deployment);
      checkDeployment(context, deployment);
   }
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

      return deployment;
   }

   public void testMetaDataLocation() throws Exception
   {
      Deployment deployment = createMetaDataLocation();
      DeploymentContext context = build(deployment);
      checkDeployment(context, 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;
   }
View Full Code Here

      return deployment;
   }

   public void testClasspathEntries() throws Exception
   {
      Deployment deployment = createClasspathEntries();
      DeploymentContext context = build(deployment);
      checkDeployment(context, deployment);
   }
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

TOP

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

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.