/** * {@link org.jboss.as.weld.deployment.processors.WeldDeploymentProcessor} assembles a basic accessibility graph based on * the deployment structure. Here, we complete the graph by examining classloader visibility. This allows additional * accessibility edges caused e.g. by the Class-Path declaration in the manifest file, to be recognized. * * @param beanDeploymentArchives */ private void calculateAccessibilityGraph(Iterable<BeanDeploymentArchiveImpl> beanDeploymentArchives) { for (BeanDeploymentArchiveImpl from : beanDeploymentArchives) { for (BeanDeploymentArchiveImpl target : beanDeploymentArchives) { if (from.isAccessible(target)) { from.addBeanDeploymentArchive(target); } } } }
if (newBda.isAccessible(bda)) { newBda.addBeanDeploymentArchive(bda); if (bda.isAccessible(newBda)) { bda.addBeanDeploymentArchive(newBda);