Package org.jboss.deployers.client.spi

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


      }
   }

   protected Deployment deploy(VirtualFile ear) throws Exception
   {
      Deployment deployment = createVFSDeployment(ear);
     
      DeployerClient mainDeployer = getDeployerClient();
      mainDeployer.addDeployment(deployment);
      mainDeployer.process();
      return deployment;
View Full Code Here


      createAssembledDirectory(ear)
         .addPath("/weld/mcandweld/ear/weldandmc");
      createMcLib(ear, "/weld/mcandweld/mc/nobootstrap", SimpleBeanWithSimpleWebBean.class);
      createWeldLib(ear, "/weld/mcandweld/weld", SimpleWebBean.class);
     
      Deployment deployment = createVFSDeployment(ear);
      String installerName = deployment.getName() + "BootstrapBeanInstaller=SimpleBean";

      mainDeployer.addDeployment(deployment);
      mainDeployer.process();
      try
      {
         DeploymentUnit earDU = getMainDeployerStructure().getDeploymentUnit(deployment.getName());

         //Check that the flat deployment bean has been started
         FlatDeployment flatDeployment = (FlatDeployment)getBean(DeployersUtils.getDeploymentBeanName(earDU));
         assertNotNull(flatDeployment);
View Full Code Here

               deployersImpl.addDeployer(new ServiceDeploymentDeployer());
               deployersImpl.addDeployer(new CLDeployer());
               deployersImpl.addDeployer(new SMDParsingDeployer());
               mainDeployer.setDeployers(deployersImpl);

               Deployment deployment = new AbstractDeployment("SMD");
               mainDeployer.addDeployment(deployment);
               mainDeployer.process();

               mainDeployer.checkComplete(deployment);
               fail("Should not be here");
View Full Code Here

      String deploymentName = contextMap.get(url);
      if (deploymentName != null)
      {
         try
         {
            Deployment deployment = delegate.getDeployment(deploymentName);
            delegate.addDeployment(deployment);
            delegate.process();
            delegate.checkComplete(deployment);
         }
         catch (org.jboss.deployers.spi.DeploymentException e)
View Full Code Here

   {
      String name = contextMap.get(url);
      if (name == null)
         return null;

      Deployment dc = delegate.getDeployment(name);
      log.debug("getDeployment, url="+url+", dc="+dc);
      return dc;
   }
View Full Code Here

      if (scriptName == null)
         throw new IllegalArgumentException("Null script name.");

      BeanShellScript script = createBeanShellScript(bshScript, scriptName);
      Deployment deployment = new AbstractDeployment(scriptName);
      MutableAttachments mutableAttachments = ((MutableAttachments)deployment.getPredeterminedManagedObjects());
      mutableAttachments.addAttachment(BeanShellScript.class, script);

      deployer.addDeployment(deployment);
      deployer.process();

      return deployment.getName();
   }
View Full Code Here

      return suite(SmokeTestCase.class);
   }

   protected void testDeployment(VirtualFile app) throws Exception
   {
      Deployment deployment = createVFSDeployment(app);

      DeployerClient mainDeployer = getDeployerClient();
      mainDeployer.addDeployment(deployment);
      mainDeployer.process();
      try
      {
         DeploymentUnit du = getMainDeployerStructure().getDeploymentUnit(deployment.getName());
         ControllerContext context = du.getAttachment(ControllerContext.class);
         assertNotNull(context);
         assertEquals(ControllerState.INSTALLED, context.getState());

         // There should be no WB bootstrap bean
View Full Code Here

      File path = new File(deployURL.getFile());
      String archive = path.getName();
      File deployFile = new File(uploadDir, archive);

      VirtualFile root = VFS.getChild(deployFile.toURI());
      Deployment deployment = mainDeployer.getDeployment(getDeploymentName(root));

      /* TODO: that is a hack */
      if (deployment == null)
      {
         deployment = deploymentFactory.createVFSDeployment(getDeploymentName(root), root);
         mainDeployer.addDeployment(deployment);
         mainDeployer.process();
         moduleID.setRunning(true);
         moduleID.clearChildModuleIDs();
         // Repopulate the child modules
         DeploymentContext context = mainDeployer.getDeploymentContext(deployment.getName());
         fillChildrenTargetModuleID(moduleID, context);
      }

      // hack(moduleID, context, "start");
   }
View Full Code Here

      File deployFile = new File(uploadDir, archive);
      if (deployFile.exists() == false)
         throw new IOException("deployURL(" + url + ") has no local archive");

      VirtualFile root = VFS.getChild(deployFile.toURI());
      Deployment deployment = deploymentFactory.createVFSDeployment(getDeploymentName(root), root);
      mainDeployer.addDeployment(deployment);
      DeploymentContext context = null;
      try
      {
         mainDeployer.process();
         context = mainDeployer.getDeploymentContext(deployment.getName());
         mainDeployer.checkComplete(deployment);
      }
      catch (Exception e)
      {
         /* destroy the context */
 
View Full Code Here

      }
   }

   protected void testIsolation(VirtualFile fst, String inFst, VirtualFile snd, String inSnd) throws Exception
   {
      Deployment deployment1 = createVFSDeployment(fst);
      Deployment deployment2 = createVFSDeployment(snd);

      DeployerClient mainDeployer = getDeployerClient();
      mainDeployer.addDeployment(deployment1);
      mainDeployer.addDeployment(deployment2);
      mainDeployer.process();
      try
      {
         DeploymentUnit du1 = getMainDeployerStructure().getDeploymentUnit(deployment1.getName());
         assertLoadClass(inFst, du1.getClassLoader());
         assertClassNotFound(inSnd, du1);

         DeploymentUnit du2 = getMainDeployerStructure().getDeploymentUnit(deployment2.getName());
         assertLoadClass(inSnd, du2.getClassLoader());
         assertClassNotFound(inFst, du2);
      }
      finally
      {
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.