Package org.jboss.deployers.vfs.plugins.structure.file

Examples of org.jboss.deployers.vfs.plugins.structure.file.FileStructure


      return determineStructureWithStructureDeployers(deployment, structureDeployer);
   }
  
   protected VFSDeploymentContext determineStructureWithAllStructureDeployers(VFSDeployment deployment) throws Exception
   {
      return determineStructureWithStructureDeployers(deployment, new FileStructure(), new WARStructure(), new JARStructure());
   }
View Full Code Here


   }

   protected VFSDeploymentContext determineStructure(VFSDeployment deployment) throws Exception
   {
      // TODO - check serialization of modifed roots
      return determineStructureWithStructureDeployers(deployment, false, new DeclaredStructure(), new JARStructure(), new WARStructure(), new FileStructure());
   }
View Full Code Here

      enableTrace("org.jboss.deployers");
   }

   protected VFSDeploymentContext determineStructure(VFSDeployment deployment) throws Exception
   {
      return determineStructureWithStructureDeployers(deployment, new DeclaredStructure(), new JARStructure(), new FileStructure());
   }
View Full Code Here

      TestDummyClassLoader dummy = new TestDummyClassLoader();
      VFSStructuralDeployersImpl structuralDeployers = new VFSStructuralDeployersImpl();
      VFSStructureBuilder builder = new VFSStructureBuilder();
      structuralDeployers.setStructureBuilder(builder);
      structuralDeployers.addDeployer(new JARStructure());
      structuralDeployers.addDeployer(new FileStructure());

      ClassLoader previous = Thread.currentThread().getContextClassLoader();
      Thread.currentThread().setContextClassLoader(dummy);
      try
      {
View Full Code Here

   {
      MainDeployerImpl main = new MainDeployerImpl();
      main.setStructuralDeployers(createStructuralDeployers());
      addStructureDeployer(main, new JARStructure());
      MockBshDeployer bshDeployer = new MockBshDeployer();
      FileStructure fileStructure = new FileStructure();
      fileStructure.addFileMatcher(bshDeployer);
      addStructureDeployer(main, fileStructure);
      DeployersImpl deployers = new DeployersImpl(new AbstractController());
      deployers.setMgtObjectCreator(new DefaultManagedObjectCreator());
      deployers.addDeployer(bshDeployer);
      main.setDeployers(deployers);
View Full Code Here

      try
      {
         Set<String> suffixes = new HashSet<String>(jarStructure.getSuffixes());
         suffixes.add(".ejb3");
         jarStructure.setSuffixes(suffixes);
         return determineStructureWithStructureDeployers(deployment, new FileStructure(), new WARStructure(), jarStructure, createEarStructureDeployer());
      }
      finally
      {
         jarStructure.setSuffixes(defaultSuffixes);
      }
View Full Code Here

      super(name);
   }

   protected VFSDeploymentContext determineStructure(VFSDeployment deployment) throws Exception
   {
      return determineStructureWithStructureDeployer(deployment, new FileStructure());
   }
View Full Code Here

      super.setUp();
      try
      {
         main = createMainDeployer();
         addStructureDeployer(main, new JARStructure());
         addStructureDeployer(main, new FileStructure());
        
         deployer = new TestXmlDeployer();
         deployer.create();
         addDeployer(main, deployer);
      }
View Full Code Here

      assertTrue("default suffixes size should be > 0", defaultSuffixes.size() > 0);
   }
  
   public void testNewUsingDefaults() throws Exception
   {
      FileStructure structure = new FileStructure();

      Set<String> suffixes = structure.getSuffixes();
      assertNotNull(suffixes);
      assertEquals(defaultSuffixes.size(), suffixes.size());
      for (String suff : defaultSuffixes)
      {
         suffixes.contains(suff);
View Full Code Here

         newSuffixes = new HashSet<String>();
         newSuffixes.add("-ds.xml");
         newSuffixes.add("-dd.xml");
         newSuffixes.add("-service.xml");
        
         FileStructure structure = new FileStructure(newSuffixes);
        
         Set<String> suffixes = structure.getSuffixes();
         assertNotNull(suffixes);
         assertEquals(3, suffixes.size());
         assertTrue(suffixes.contains("-ds.xml"));
         assertTrue(suffixes.contains("-dd.xml"));
         assertTrue(suffixes.contains("-service.xml"));
      }
      finally
      {
         // Reset
         new FileStructure(defaultSuffixes);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.vfs.plugins.structure.file.FileStructure

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.