Examples of VFSDeployment


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

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

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

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

      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

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

    */
   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

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

      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

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

      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

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

      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

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

      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

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

      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

Examples of org.jboss.test.virtual.support.ps.VFSDeployment

     
      // Get the modified deployments
      Collection<ModificationInfo> modified  = profileService.getModifiedDeployments();
      for(ModificationInfo info : modified)
      {
         VFSDeployment ctx = info.getDeployment();
         log.debug("Saw modified ctx: "+ctx.getName());
         // TODO: cause the file to be opened/closed?
      }
      log.debug("End deployment scan");
   }
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.