Package org.jboss.deployers.vfs.spi.structure

Examples of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext


      return result;
   }
  
   protected VFSDeploymentContext assertDeployNoChildren(String context, String path) throws Throwable
   {
      VFSDeploymentContext result = assertDeploy(context, path);
      assertNoChildContexts(result);
      return result;
   }
View Full Code Here


      return determineStructureWithStructureDeployers(deployment, new MockEarStructureDeployer(), new JARStructure(), new DirectoryStructure());
   }

   public void testSarWithLib() throws Throwable
   {
      VFSDeploymentContext context = assertDeploy("/structure/dir", "test-in-lib.sar");
      assertChildContexts(context, "lib/test.jar");
   }
View Full Code Here

      assertChildContexts(context, "lib/test.jar");
   }

   public void testSarWithNestedLib() throws Throwable
   {
      VFSDeploymentContext context = assertDeploy("/structure/dir", "test-in-lib-nested.sar");
      assertChildContexts(context, "lib/nested/test.jar");
   }
View Full Code Here

      assertChildContexts(context, "lib/nested/test.jar");
   }

   public void testEarSarWithLib() throws Throwable
   {
      VFSDeploymentContext context = assertDeploy("/structure/dir", "simple.ear");
      assertChildContexts(context, "test-in-lib.sar", "test-in-lib.sar/lib/test.jar");
   }
View Full Code Here

      assertChildContexts(context, "test-in-lib.sar", "test-in-lib.sar/lib/test.jar");
   }

   public void testEarSarWithNestedLib() throws Throwable
   {
      VFSDeploymentContext context = assertDeploy("/structure/dir", "nested.ear");
      assertChildContexts(context, "test-in-lib-nested.sar", "test-in-lib-nested.sar/lib/nested/test.jar");
   }
View Full Code Here

      // skip vfs deployment context lookup if archive or file
      if (root.isArchive() || root.isLeaf())
         return root.hasBeenModified();

      VFSDeploymentContext deploymentContext;
      try
      {
         String name = root.toURI().toString();
         deploymentContext = getDeploymentContext(name);
         if (deploymentContext != null)
View Full Code Here

   public boolean hasStructureBeenModified(VFSDeployment deployment) throws IOException
   {
      if (deployment == null)
         throw new IllegalArgumentException("Null deployment");

      VFSDeploymentContext deploymentContext = getDeploymentContext(deployment.getName());
      return deploymentContext != null && hasStructureBeenModified(deploymentContext);
   }
View Full Code Here

      // skip vfs deployment context lookup if archive or file
      if (root.isArchive() || root.isLeaf())
         return root.hasBeenModified();

      VFSDeploymentContext deploymentContext;
      try
      {
         String name = root.toURI().toString();
         deploymentContext = getDeploymentContext(name);
         if (deploymentContext != null)
View Full Code Here

   public boolean hasStructureBeenModified(VFSDeployment deployment) throws IOException
   {
      if (deployment == null)
         throw new IllegalArgumentException("Null deployment");

      VFSDeploymentContext deploymentContext = getDeploymentContext(deployment.getName());
      return deploymentContext != null && hasStructureBeenModified(deploymentContext);
   }
View Full Code Here

   protected DeploymentContext createChildDeploymentContext(DeploymentContext parent, ContextInfo child) throws Exception
   {
      if (parent instanceof VFSDeploymentContext)
      {
         VFSDeploymentContext vfsParent = (VFSDeploymentContext) parent;
         String path = child.getPath();
         try
         {
            VirtualFile parentFile = vfsParent.getRoot();
            VirtualFile file = parentFile.getChild(path);
            return new AbstractVFSDeploymentContext(applyModification(file.exists() ? file : null, child), path);
         }
         catch (RuntimeException t)
         {
            throw DeploymentException.rethrowAsDeploymentException("Unable to determine child " + path + " from parent " + vfsParent.getRoot().getName(), t);
         }
      }
      return super.createChildDeploymentContext(parent, child);
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext

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.