Examples of ArchiveInfo


Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

      {
         return;
      }
      if (classLoader instanceof RealClassLoader)
      {
         unit.addAttachment(ArchiveInfo.class, new ArchiveInfo(classLoader, EjbDiscoveryUtils.getVisibleEJbNames(unit)));
      }
      else
         // FIXME
         throw new NotImplementedException();
   }
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

               module = moduleUnit.getAttachment(Module.class);
            }
            if (module == null)
               throw new DeploymentException("No module in deployment unit's hierarchy: " + unit.getName());

            ArchiveInfo archive = moduleUnit.getAttachment(ArchiveInfo.class);
            if (archive == null)
               throw new IllegalStateException("Archive attachment expected for unit " + unit);

            WeldDiscoveryEnvironment environment = archive.getEnvironment();
            if (hasCp)
            {
               URL[] urls = new URL[cpFiles.size()];
               int i = 0;
               for (VirtualFile file : cpFiles)
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

      return archiveInfos;
   }
  
   private void fill(Collection<ArchiveInfo> archiveInfos, DeploymentUnit unit)
   {
      ArchiveInfo archiveInfo = unit.getAttachment(ArchiveInfo.class);
      if (archiveInfo != null)
      {
         archiveInfos.add(archiveInfo);
      }
      for (DeploymentUnit child: unit.getChildren())
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

      VirtualFile ear = createBasicEar();
      unit = assertDeploy(ear);
      assertArchiveInfoWithDefaultClasspath(unit);
      for (DeploymentUnit childUnit: unit.getChildren())
      {
         ArchiveInfo archiveInfo = childUnit.getAttachment(ArchiveInfo.class);
         if (childUnit.getName().endsWith(".war/"))
         {
            assertNotNull("Null ArchiveInfo", archiveInfo);
            assertNonDefaultClasspath(childUnit.getName(), archiveInfo.getClasspath());
         }
         else
         {
            assertNull("ArchiveInfo for unit " + childUnit.getName() + " is not null", archiveInfo);
         }
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

      }
   }

   private void assertArchiveInfoWithDefaultClasspath(VFSDeploymentUnit unit)
   {
      ArchiveInfo archiveInfo = unit.getAttachment(ArchiveInfo.class);
      assertNotNull("Null ArchiveInfo", archiveInfo);
      assertDefaultClasspath(archiveInfo.getClasspath());
   }
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

      assertDefaultClasspath(archiveInfo.getClasspath());
   }

   private void assertArchiveInfoWithWarClasspath(DeploymentUnit unit)
   {
      ArchiveInfo archiveInfo = unit.getAttachment(ArchiveInfo.class);
      assertNotNull("Null ArchiveInfo for unit " + unit, archiveInfo);
      assertClasspath(unit.getName(), archiveInfo.getClasspath());
      assertEmpty(unit.getChildren());
   }
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

            assertExpectedClasses(discovery, CrmWebBean.class);
            assertExpectedWarResources(discovery, "top-level.ear/crm.war", false, "crm.jar");
         }
         else
         {
            ArchiveInfo archiveInfo = childUnit.getAttachment(ArchiveInfo.class);
            assertNull("Unit " + unit.getName() " contains a not null ArchiveInfo", archiveInfo);
         }
      }
   }
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

            assertExpectedClasses(discovery, CrmWebBean.class, NotWBJsfBean.class);
            assertExpectedWarResources(discovery, "top-level.ear/crm.war", true, "crm.jar");
         }
         else
         {
            ArchiveInfo archiveInfo = childUnit.getAttachment(ArchiveInfo.class);
            assertNull("Unit " + unit.getName() " contains a not null ArchiveInfo", archiveInfo);
         }
      }
   }
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

            assertExpectedClasses(discovery);
            assertExpectedResources(discovery);
         }
         else
         {
            ArchiveInfo archiveInfo = childUnit.getAttachment(ArchiveInfo.class);
            assertNull("Unit " + unit.getName() " contains a not null ArchiveInfo", archiveInfo);
         }
      }
   }
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.ArchiveInfo

      return assertDiscoveryEnvironment(unit, name);
   }

   private WeldDiscoveryEnvironment assertDiscoveryEnvironment(DeploymentUnit unit, String name)
   {
      ArchiveInfo archiveInfo = unit.getAttachment(ArchiveInfo.class);
      assertNotNull(archiveInfo);
      assertTrue("Unit name \"" + unit.getName() + "\" expected to end with \"" + name +
               "\" suffix", unit.getName().endsWith(name + '/'));
      WeldDiscoveryEnvironment discovery = archiveInfo.getEnvironment();
      assertNotNull(discovery);
      return discovery;
   }
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.