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

Examples of org.jboss.deployers.vfs.plugins.structure.jar.JARStructure


   public void testBshNonMetadataDeploy() throws Throwable
   {
      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());
View Full Code Here


   }

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

   }

   protected VFSDeploymentContext determineStructure(VFSDeployment deployment) throws Exception
   {
      Set<String> defaultSuffixes = JarUtils.getSuffixes();
      JARStructure jarStructure = new JARStructure();
      jarStructure.setSupportsCandidateAnnotations(true);
      jarStructure.addCandidateAnnotation(Stateless.class);
      jarStructure.addCandidateAnnotation(Service.class);
      jarStructure.addCandidateAnnotation(AppClient.class);
      jarStructure.addCandidateAnnotation(Servlet.class);
      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 JARStructure());
   }
View Full Code Here

      assertTrue("default suffixes size should be > 0", defaultSuffixes.size() > 0);
   }

   public void testNewUsingDefaults() throws Exception
   {
      JARStructure structure = new JARStructure();

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

         Set<String> newSuffixes = new HashSet<String>();
         newSuffixes.add(".bar");
         newSuffixes.add(".tar");
         newSuffixes.add(".far");
        
         JARStructure structure = new JARStructure(newSuffixes);
         Set<String> suffixes = structure.getSuffixes();
         assertNotNull(suffixes);
         assertEquals(3, suffixes.size());
         assertTrue(suffixes.contains(".bar"));
         assertTrue(suffixes.contains(".tar"));
         assertTrue(suffixes.contains(".far"));
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

      return (VFSDeploymentContext) structuralDeployers.determineStructure(deployment);
   }

   protected Deployment createDefaultDeployment() throws Exception
   {
      return createDeployment(new DeclaredStructure(), new ChildFileStructure(), new JARStructure());
   }
View Full Code Here

   }

   protected void testTopModification(String path) throws Exception
   {
      DeployerClient main = createMainDeployer();
      addStructureDeployer(main, new JARStructure());

      VFSDeployment deployment = createDeployment("/structureprocessor", path);
      main.deploy(deployment);
      try
      {
View Full Code Here

   }

   public void testChildModification() throws Exception
   {
      DeployerClient main = createMainDeployer();
      addStructureDeployer(main, new JARStructure());

      VFSDeployment deployment = createDeployment("/structureprocessor", "childmod.jar");
      main.deploy(deployment);
      try
      {
View Full Code Here

TOP

Related Classes of org.jboss.deployers.vfs.plugins.structure.jar.JARStructure

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.