Examples of DeploymentContext


Examples of org.jboss.deployers.structure.spi.DeploymentContext

    * {@link org.jboss.system.deployers.LegacyPrefixDeploymentContextComparator}
    * javadoc.
    */
   public void testJavaDocExample()
   {
      DeploymentContext first = new TestDeploymentContext("test.sar");
      DeploymentContext second = new TestDeploymentContext("component.ear");
      DeploymentContext third = new TestDeploymentContext("001test.jar");
      DeploymentContext fourth = new TestDeploymentContext("5test.rar");
      DeploymentContext fifth = new TestDeploymentContext("5foo.jar");
      DeploymentContext sixth = new TestDeploymentContext("120bar.jar");
     
      assertTrue("Second comes before first", comparator.compare(first, second) < 0);
      assertTrue("Third comes before second", comparator.compare(second, third) < 0);
      assertTrue("Fourth comes before third", comparator.compare(third, fourth) < 0);
      assertTrue("Fifth comes before fourth", comparator.compare(fourth, fifth) < 0);
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentContext

   /**
    * Verifies non-prefixed deployments occur before prefixed deployments
    */
   public void testNonPrefixPrefixOrdering()
   {
      DeploymentContext first = new TestDeploymentContext("test.sar");
      DeploymentContext second = new TestDeploymentContext("test.ear");
      DeploymentContext third = new TestDeploymentContext("132test.ear");
     
      ValidateFirstSecondThird(first, second, third);
   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentContext

   protected VFSDeploymentContext getDeploymentContext(String name)
   {
      if (mainDeployer == null)
         throw new IllegalStateException("Null main deployer.");

      DeploymentContext deploymentContext = mainDeployer.getDeploymentContext(name);
      if (deploymentContext == null || deploymentContext instanceof VFSDeploymentContext == false)
         return null;

      return (VFSDeploymentContext)deploymentContext;
   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentContext

      }

      DeploymentUnit targetUnit = null;
      try
      {
         DeploymentContext ctx = server.getDeploymentContext(target.toString());
         targetUnit = ctx.getDeploymentUnit();
      }
      catch (Exception e)
      {
         log.warn("Got Exception when looking for DeploymentUnit: " + e);
         return null;
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentContext

      }

      DeploymentUnit targetUnit = null;
      try
      {
         DeploymentContext ctx = server.getDeploymentContext(target.toString());
         targetUnit = ctx.getDeploymentUnit();
      }
      catch (Exception e)
      {
         log.warn("Got Exception when looking for DeploymentUnit: " + e);
         return null;
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentContext

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

      MainDeployerInternals structure = (MainDeployerInternals) delegate;
      DeploymentContext dc = structure.getDeploymentContext(name);
      log.debug("getDeploymentContext, url="+url+", dc="+dc);
      return dc;
   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentContext

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

      DeploymentContext context = getDeploymentContext(url);
      DeploymentUnit du = context.getDeploymentUnit();
      log.debug("getDeploymentUnit, url="+url+", du="+du);
      return du;
   }
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentContext

         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

Examples of org.jboss.deployers.structure.spi.DeploymentContext

         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);
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentContext

    * @return vfs deployment context or null if doesn't exist or not vfs based
    */
   @SuppressWarnings("deprecation")
   protected VFSDeploymentContext getDeploymentContext(String name)
   {
      DeploymentContext deploymentContext = getMainDeployerStructure().getDeploymentContext(name);
      if (deploymentContext == null || deploymentContext instanceof VFSDeploymentContext == false)
         return null;

      return (VFSDeploymentContext) deploymentContext;
   }
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.