Examples of VFSDeployment


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

   }
  
   protected VFSDeployment createDeployment(String context, String path) throws Exception
   {
      VirtualFile root = getVirtualFile(context, path);
      VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(root);
      return serializeDeserialize(deployment, VFSDeployment.class);
   }
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

         }
         catch (final URISyntaxException urise)
         {
            throw new RuntimeException("Could not create a virtual file to deploy from URL: " + url, urise);
         }
         final VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(root);
         newDeployments.put(url, deployment);
      }

      // Delegate to real deployment
      this.deploy(newDeployments.values().toArray(new Deployment[]
View Full Code Here

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

   protected void determineStructure(Deployment deployment, StructureMetaData structure) throws Exception
   {
      if (deployment instanceof VFSDeployment == false)
         throw new DeploymentException("Structure can only be determined for VFSDeployments " + deployment);
     
      VFSDeployment vfsDeployment = (VFSDeployment) deployment;
     
      VirtualFile root = vfsDeployment.getRoot();
      if (root == null)
         throw new IllegalStateException("Deployment has no root " + deployment);
      StructureContext context = new StructureContext(root, structure, this);
      if (doDetermineStructure(context) == false)
         throw new DeploymentException("No deployer recognised the structure of " + deployment.getName());
View Full Code Here

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

      {
         log.warn("Deployment is not VFS or not top level.");
         return false;
      }

      VFSDeployment vfsDeployment = VFSDeployment.class.cast(deployment);
      VirtualFile root = vfsDeployment.getRoot();
      if (checkRoot && (root.isArchive() || root.isLeaf()))
         return root.hasBeenModified();

      boolean result = hasStructureBeenModifed(root, deploymentContext);
      if (result)
View Full Code Here

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

      }
      if (file == null)
      {
         throw new IllegalStateException();
      }
      final VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(file);
      try
      {
         mainDeployer.addDeployment(deployment);
         mainDeployer.process();
         mainDeployer.checkComplete();
View Full Code Here

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

      {
         log.warn("Deployment is not VFS or not top level.");
         return false;
      }

      VFSDeployment vfsDeployment = VFSDeployment.class.cast(deployment);
      VirtualFile root = vfsDeployment.getRoot();
      if (checkRoot && (root.isArchive() || root.isLeaf()))
         return root.hasBeenModified();

      boolean result = hasStructureBeenModifed(root, deploymentContext);
      if (result)
View Full Code Here

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

  
   protected DeploymentContext createRootDeploymentContext(Deployment deployment, StructureMetaData metaData) throws Exception
   {
      if (deployment instanceof VFSDeployment)
      {
         VFSDeployment vfsDeployment = (VFSDeployment) deployment;
         String name = deployment.getName();
         String simpleName = deployment.getSimpleName();
         VirtualFile root = applyModification(vfsDeployment.getRoot(), metaData.getContext(""));
         if (name == null)
         {
            return new AbstractVFSDeploymentContext(root, "");
         }
         else
View Full Code Here

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

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

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

      return (VFSDeploymentUnit) getMainDeployerStructure().getDeploymentUnit(deployment.getName(), true);
   }
  
   protected VFSDeploymentUnit assertDeploy(VirtualFile file) throws Exception
   {
      VFSDeployment deployment = createVFSDeployment(file);
      getDeployerClient().deploy(deployment);
      return (VFSDeploymentUnit) getMainDeployerStructure().getDeploymentUnit(deployment.getName(), true);
   }
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.