Examples of JARStructure


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

   }

   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

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

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

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

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

   {
      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

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

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

   }

   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

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

   }

   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

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

      super(name);
   }

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

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

      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

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

         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

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

   {
      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
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.