Package org.jboss.deployers.client.plugins.deployment

Examples of org.jboss.deployers.client.plugins.deployment.AbstractDeployment


   public void testComparator() throws Exception
   {
      DeployerClient main = getMainDeployer();
     
      AbstractDeployment parent = new AbstractDeployment("Parent");
      ContextInfo p = factory.addContext(parent, "");
      // Reverse the default comparison
      p.setComparatorClassName(TestDeploymentContextComparator.class.getName());
      factory.addContext(parent, "C1");
      factory.addContext(parent, "C2");
View Full Code Here


      main.undeploy(deployment);
   }
  
   protected Deployment createSimpleDeployment(String name)
   {
      AbstractDeployment unit = createAbstractDeployment(name);
      factory.addContext(unit, "");
      return unit;
   }
View Full Code Here

      return unit;
   }

   protected AbstractDeployment createAbstractDeployment(String name)
   {
      return new AbstractDeployment(name);
   }
View Full Code Here

      return new AbstractStructureBuilder();
   }

   protected Deployment createDeployment()
   {
      return new AbstractDeployment(getDeploymentName());
   }
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
      {
         MainDeployerStructure mds = (MainDeployerStructure) main;
         DeploymentUnit unit = mds.getDeploymentUnit(deployment.getName());
         ClassLoader cl = unit.getClassLoader();
         assertNoResource("a/b/c/test-resource-deployment5", cl);
      }
      finally
      {
View Full Code Here

      try
      {
         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);
        
         DeployerClient main = assertBean("MainDeployer", DeployerClient.class);
         main.deploy(deployment);
         try
         {
            MainDeployerStructure mds = (MainDeployerStructure) main;
            DeploymentUnit unit = mds.getDeploymentUnit(deployment.getName());
            ClassLoader cl = unit.getClassLoader();
            assertGetResource("a/b/c/test-resource-deployment5", cl);
         }
         finally
         {
View Full Code Here

   }

   @Override
   protected Deployment createDeployment()
   {
      return new AbstractDeployment();
   }
View Full Code Here

  
   public Deployment createDeployment(ProfileDeployment deployment) throws Exception
   {
      Deployment mcDeployment = null;
      if(deployment.getRoot() == null)
         mcDeployment = new AbstractDeployment(deployment.getName());
      else
         mcDeployment = deploymentFactory.createVFSDeployment(deployment.getRoot());
     
      // Add the deployment attachments as PredeterminedManagedObjects
      Map<String, Object> attachments = deployment.getAttachments();
View Full Code Here

TOP

Related Classes of org.jboss.deployers.client.plugins.deployment.AbstractDeployment

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.