Package org.jboss.deployers.client.spi

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


      VirtualFile contextFile = VFS.getChild(contextName);
     
      // Create the deployment
      VirtualFile vf = contextFile.getChild("spaces.ear");
      assertNotNull(vf);
      Deployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(vf);

      // Make sure we can deploy/undeploy it
      invoke(getDeployerName(), "deploy", new Object[]{ deployment }, new String[] { Deployment.class.getName() });
      invoke(getDeployerName(), "checkIncompleteDeployments", null, null);
      invoke(getDeployerName(), "undeploy", new Object[]{ deployment }, new String[] { Deployment.class.getName() });
View Full Code Here


   {
      if(deployment == null)
      {
         throw new IllegalArgumentException("null profile deployment");
      }
      Deployment d = createDeployment(key, deployment);
      deployer.addDeployment(d);
   }
View Full Code Here

   private VDFDeploymentBuilder() { }
  
   public Deployment createDeployment(ProfileKey key, ProfileDeployment profileDeployment) throws Exception
   {
      Deployment d = null;
      if(profileDeployment.getRoot() == null)
      {
         d = new AbstractDeployment(profileDeployment.getName());
      }
      else
View Full Code Here

            false
      );

      Object bootstrap;
      String duSimpleName = null;
      Deployment deployment = createVFSDeployment(ear);
      DeployerClient mainDeployer = getDeployerClient();
      mainDeployer.addDeployment(deployment);
      mainDeployer.process();
      ControllerContext wbContext = null;
      try
      {
         DeploymentUnit earDU = getMainDeployerStructure().getDeploymentUnit(deployment.getName());
         String bootName = DeployersUtils.getBootstrapBeanName(earDU);
         bootstrap = getBean(bootName, null);
         assertInstanceOf(bootstrap, "org.jboss.test.deployers.support.CheckableBootstrap", earDU.getClassLoader());
         // waiting on ejb
         assertTrue(invoke(bootstrap, "Create"));
View Full Code Here

      VirtualFile top = VFS.getChild("top-level.ear");
      createAssembledDirectory(top)
         .addPath("/weld/mcandweld/ear/mconly");
      createMcLib(top, "/weld/mcandweld/mc/simple", SimpleBean.class);
     
      Deployment deployment = createVFSDeployment(top);
      DeployerClient mainDeployer = getDeployerClient();
      mainDeployer.addDeployment(deployment);
      mainDeployer.process();
      try
      {
View Full Code Here

   {
      VirtualFile mcEar = VFS.getChild("mc.ear");
      createAssembledDirectory(mcEar)
         .addPath("/weld/mcandweld/ear/mconly");
      createMcLib(mcEar, "/weld/mcandweld/mc/simple", SimpleBean.class);
      Deployment mc = deploy(mcEar);
     
      try
      {
         VirtualFile weldEar = VFS.getChild("weld.ear");
         createAssembledDirectory(weldEar)
View Full Code Here

   {
      VirtualFile mcEar = VFS.getChild("mc.ear");
      createAssembledDirectory(mcEar)
         .addPath("/weld/mcandweld/ear/mconly");
      createMcLib(mcEar, "/weld/mcandweld/mc/simple", SimpleBean.class);
      Deployment mc = deploy(mcEar);
      undeploy(mc);
     
      VirtualFile weldEar = VFS.getChild("weld.ear");
      createAssembledDirectory(weldEar)
         .addPath("/weld/mcandweld/ear/weldonly");
View Full Code Here

     
      VirtualFile mcEar = VFS.getChild("mc.ear");
      createAssembledDirectory(mcEar)
         .addPath("/weld/mcandweld/ear/mconly");
      createMcLib(mcEar, "/weld/mcandweld/mc/simple", SimpleBean.class);
      Deployment mc = deploy(mcEar);
      try
      {
         testBootstrap(weldEar, new RunSpecificTest()
         {
            public void runTest(BeanManager manager, DeploymentUnit unit) throws Exception
View Full Code Here

   {
      VirtualFile mcEar = VFS.getChild("mc.ear");
      createAssembledDirectory(mcEar)
         .addPath("/weld/mcandweld/ear/mconly");
      createMcLib(mcEar, "/weld/mcandweld/mc/simple", SimpleBean.class);
      Deployment mc = deploy(mcEar);
     
      undeploy(mc);
     
      VirtualFile weldEar = VFS.getChild("weld.ear");
      createAssembledDirectory(weldEar)
View Full Code Here

   }
  
   protected void testBootstrap(VirtualFile ear, RunSpecificTest test) throws Exception
   {
      enableTrace("org.jboss.dependency.plugins.");
      Deployment deployment = deploy(ear);
      DeploymentUnit earDU = null;
      try
      {
         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

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.