Package org.jboss.classloading.spi.dependency

Examples of org.jboss.classloading.spi.dependency.Module.visit()


               null,
               new ResourceFilter[]{rfA, null}
         );

         Module module = assertModule("test:0.0.0");
         module.visit(fedRV, fedRV.getFilter(), fedRV.getRecurseFilter());

         assertEquals(4, classes.size()); // A, A, B, C
      }
      finally
      {
View Full Code Here


         public void visit(ResourceContext resource)
         {
            set.add(resource.getResourceName());
         }
      };
      module.visit(visitor);
      assertEquals(aliases.keySet(), set);
   }
}
View Full Code Here

            {
               urls[i++] = file.toURL();
            }

            WBDiscoveryVisitor visitor = new WBDiscoveryVisitor(environment);
            module.visit(visitor, ClassFilter.INSTANCE, null, urls);
         }
      }
      catch (Exception e)
      {
         throw DeploymentException.rethrowAsDeploymentException("Cannot build WB env.", e);
View Full Code Here

      Module module = ClassLoading.getModuleForClassLoader(cl);
      if (module == null)
         return false;

      MatchFragment mf = new MatchFragment();
      module.visit(mf, null, mf);
      return mf.isFound();
   }

   private class MatchFragment implements ResourceVisitor, ResourceFilter
   {
View Full Code Here

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

         WBDiscoveryVisitor visitor = new WBDiscoveryVisitor(wbdi);
         module.visit(visitor, ClassFilter.INSTANCE, null, urls.toArray(new URL[urls.size()]));
      }
   }

   /**
    * Get the matching class paths that belong to this deployment unit.
View Full Code Here

      Module module = unit.getAttachment(Module.class);
      if (module == null)
         fail("Expected " + unit + " to have a module");
     
      TestResourceVisitor visitor = new TestResourceVisitor();
      module.visit(visitor);
     
      getLog().debug(unit.getName() + " found: " + visitor.resources);
     
      return visitor;
   }
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.