Examples of VFSDeployment


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

               deploymentName = url.toExternalForm();
            } else {
               deploymentName = file.asFileURI().toString();              
            }
           
            final VFSDeployment deployment = deploymentFactory.createVFSDeployment(deploymentName, file);
            delegate.addDeployment(deployment);
            delegate.process();
            // TODO: JBAS-4292
            contextMap.put(url, deploymentName);
            delegate.checkComplete(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();

      boolean result = false;

      if (checkRoot && (root.isArchive() || root.isLeaf()))
      {
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

   public void prepareStructureMetaData(Deployment deployment, StructureMetaData structureMetaData)
   {
      if (deployment instanceof VFSDeployment == false)
         return;

      VFSDeployment vfsDeployment = VFSDeployment.class.cast(deployment);
      VirtualFile root = vfsDeployment.getRoot();
      checkForModification(root, structureMetaData);
   }
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

   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);
      if (doDetermineStructure(root, null, root, structure) == 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

  
   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

        WebGatewayBuilder builder = new WebGatewayBuilder(esbWarFiles, esbArchive, deploymentName, localCl, esbMetaData.getModel());
        File subDeployment = builder.build();
        if (subDeployment != null)
        {
            VFSDeployment vfsDeployment = null;
            try
            {
                vfsDeployment = createVFSDeployment(subDeployment);
                mainDeployer.deploy(vfsDeployment);
                log.info("Deploying '" + vfsDeployment.getName() + "'");
                this.setPublishers(builder.getPublishers());
                this.setServlets(builder.getServlets());
                this.deployment = vfsDeployment;
            }
            catch (Throwable throwable)
            {
                if (vfsDeployment != null)
                {
                    VirtualFile deploymentFile = vfsDeployment.getRoot();
                    if(deploymentFile.exists())
                    {
                        log.info("Deleting '" + vfsDeployment.getSimpleName() + "'");
                        deploymentFile.delete();
                    }
                }
                throw new ConfigurationException("Error deploying '" + vfsDeployment.getName() + "'.", throwable);
            }
        }
        this.state = CREATED;
    }
View Full Code Here

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

        return new AbstractVFSDeploymentUnit(deploymentContext);
    }

    public static VFSDeploymentContext getDeploymentContext(final VirtualFile esbArchive) throws Exception
    {
        VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(esbArchive);
        VFSStructuralDeployersImpl structuralDeployers = new VFSStructuralDeployersImpl();
        VFSStructureBuilder builder = new VFSStructureBuilder();
        structuralDeployers.setStructureBuilder(builder);
        StructureDeployer[] deployers = new StructureDeployer[]{new JARStructure()};
        for (StructureDeployer deployer : deployers)
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.