Package org.jboss.deployers.vfs.spi.client

Examples of org.jboss.deployers.vfs.spi.client.VFSDeployment


      return (VFSDeploymentUnit) getMainDeployerStructure().getDeploymentUnit(deployment.getName(), true);
   }
  
   protected VFSDeploymentUnit addDeployment(String root, String child) throws Exception
   {
      VFSDeployment deployment = createVFSDeployment(root, child);
      getDeployerClient().addDeployment(deployment);
      getDeployerClient().process();
      return (VFSDeploymentUnit) getMainDeployerStructure().getDeploymentUnit(deployment.getName(), true);
   }
View Full Code Here


   public void testConstruct()
   {
      VFSDeploymentFactory factory = createDeploymentFactory();
      VirtualFile root = getVirtualFile("/dummy");
      VFSDeployment deployment = factory.createVFSDeployment(root);
      assertEquals(root, deployment.getRoot());
   }
View Full Code Here

      return structureBuilder;
   }

   protected void testFacelets(String name, int size) throws Throwable
   {
      VFSDeployment context = createDeployment("/facelets", name);
      assertDeploy(context);
      try
      {
         Set<URL> urls = deployer.getUrls();
         assertNotNull(urls);
View Full Code Here

    */
   protected VFSDeployment createDeployment(String name) throws Exception
   {
      URL url = getClass().getProtectionDomain().getCodeSource().getLocation();
      VirtualFile file = VFS.getRoot(url);
      VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(file);
      DeploymentFactory factory = new DeploymentFactory();
      factory.addContext(deployment, "");
      ((AbstractDeployment) deployment).setName(name);
      return deployment;
   }
View Full Code Here

      addDeployer(main, aliasMetaDataDeployer);
   }

   public void testAliasSuccessful() throws Exception
   {
      VFSDeployment context = createDeployment("/alias", "toplevel/my-beans.xml");
      assertDeploy(context);
      assertNotNull(controller.getInstalledContext("Test"));

      VFSDeployment alias = createDeployment("/alias", "toplevel/aliases-beans.xml");
      assertDeploy(alias);
      assertNotNull("Missing Test bean.", controller.getInstalledContext("MyAlias"));
      assertEquals(controller.getInstalledContext("MyAlias"), controller.getInstalledContext("Test"));
      assertNotNull("Missing Injectee bean.", controller.getInstalledContext("Injectee"));
View Full Code Here

      assertNull(controller.getContext("MyAlias", null));
   }

   public void testJoinedSuccessful() throws Exception
   {
      VFSDeployment context = createDeployment("/alias", "toplevel/joined-beans.xml");
      assertDeploy(context);
      assertNotNull(controller.getInstalledContext("Test"));
      assertNotNull(controller.getInstalledContext("MyAlias"));    
      assertEquals(controller.getInstalledContext("MyAlias"), controller.getInstalledContext("Test"));
View Full Code Here

      assertNull(controller.getContext("Test", null));
   }

   public void testAliasMissing() throws Exception
   {
      VFSDeployment context = createDeployment("/alias", "toplevel/aliases-beans.xml");
      assertDeploy(context);
      assertNotNull(controller.getContext("Injectee", ControllerState.INSTANTIATED));
      assertUndeploy(context);
      assertNull(controller.getContext("Test", null));
   }
View Full Code Here

      assertNull(controller.getContext("Test", null));
   }

   public void testJMXAlias() throws Exception
   {
      VFSDeployment context = createDeployment("/alias", "toplevel/mbean-beans.xml");
      assertDeploy(context);
      assertNotNull(controller.getInstalledContext("Test"));

      VFSDeployment alias = createDeployment("/alias", "toplevel/jmx-beans.xml");
      assertDeploy(alias);
      assertNotNull("Missing Injectee bean.", controller.getInstalledContext("Injectee"));

      assertUndeploy(alias);
      assertNull(controller.getContext("Injectee", null));
View Full Code Here

      assertNull(controller.getContext("Test", null));
   }

   public void testAliasDemand() throws Exception
   {
      VFSDeployment context = createDeployment("/alias", "toplevel/tomcat-beans.xml");
      assertDeploy(context);
      assertNotNull(controller.getInstalledContext("Tomcat"));

      VFSDeployment alias = createDeployment("/alias", "toplevel/servicex-beans.xml");
      assertDeploy(alias);
      assertNotNull(controller.getInstalledContext("ServiceX"));

      assertUndeploy(context);
      assertNull(controller.getContext("Tomcat", null));
View Full Code Here

      assertNull(controller.getContext("ServiceX", null));
   }

   public void testAliasDependency() throws Exception
   {
      VFSDeployment alias = createDeployment("/alias", "toplevel/servicex-beans.xml");
      assertDeploy(alias);
      assertNotNull(controller.getContext("ServiceX", ControllerState.CONFIGURED));

      VFSDeployment context = createDeployment("/alias", "toplevel/tomcat-beans.xml");
      assertDeploy(context);
      assertNotNull(controller.getInstalledContext("Tomcat"));
      assertNotNull(controller.getInstalledContext("JBossWeb"));
      assertNotNull(controller.getInstalledContext("ServiceX"));
View Full Code Here

TOP

Related Classes of org.jboss.deployers.vfs.spi.client.VFSDeployment

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.