Package org.jboss.deployers.vfs.spi.structure.helpers

Examples of org.jboss.deployers.vfs.spi.structure.helpers.ClassPathVisitor


   protected VirtualFile[] determineVFSRoots()
   {
      if (vfsRoots != null)
         return vfsRoots;

      ClassPathVisitor visitor = new ClassPathVisitor(getDeploymentUnit());
      try
      {
         getDeploymentUnit().visit(visitor);
      }
      catch (DeploymentException e)
      {
         throw new RuntimeException("Error visiting deployment: " + e);
      }
      Set<VirtualFile> classPath = visitor.getClassPath();
     
      vfsRoots = classPath.toArray(new VirtualFile[classPath.size()]);
      return vfsRoots;
   }
View Full Code Here


         else
            parent = parent.getParent();
      }
     
      // Get our classpath
      ClassPathVisitor visitor = new ClassPathVisitor(unit);
      unit.visit(visitor);
      Set<VirtualFile> rawClassPath = visitor.getClassPath();

      // We're creating the classpath
      List<VirtualFile> vfsClassPath = new ArrayList<VirtualFile>();
      unit.addAttachment(VFS_CLASS_PATH, vfsClassPath, List.class);
      Set<VirtualFile> vfsExcludes = new HashSet<VirtualFile>();
View Full Code Here

public class VFSTopLevelClassLoaderSystemDeployer extends AbstractTopLevelClassLoaderSystemDeployer
{
   @Override
   protected VFSClassLoaderPolicy createTopLevelClassLoaderPolicy(DeploymentContext context, Module module) throws Exception
   {
      ClassPathVisitor visitor = new ClassPathVisitor();
      context.visit(visitor);
      Set<VirtualFile> classPath = visitor.getClassPath();
     
      VirtualFile[] roots = new VirtualFile[classPath.size() + 1];
      int i = 0;
      for (VirtualFile path : classPath)
         roots[i++] = path;
View Full Code Here

   protected VirtualFile[] determineVFSRoots()
   {
      if (vfsRoots != null)
         return vfsRoots;

      ClassPathVisitor visitor = new ClassPathVisitor(getDeploymentUnit());
      try
      {
         getDeploymentUnit().visit(visitor);
      }
      catch (DeploymentException e)
      {
         throw new RuntimeException("Error visiting deployment: " + e);
      }
      Set<VirtualFile> classPath = visitor.getClassPath();
     
      vfsRoots = classPath.toArray(new VirtualFile[classPath.size()]);
      return vfsRoots;
   }
View Full Code Here

         else
            parent = parent.getParent();
      }
     
      // Get our classpath
      ClassPathVisitor visitor = new ClassPathVisitor(unit);
      unit.visit(visitor);
      Set<VirtualFile> rawClassPath = visitor.getClassPath();

      // We're creating the classpath
      List<VirtualFile> vfsClassPath = new ArrayList<VirtualFile>();
      unit.addAttachment(VFS_CLASS_PATH, vfsClassPath, List.class);
      Set<VirtualFile> vfsExcludes = new HashSet<VirtualFile>();
View Full Code Here

/*    */ public class VFSTopLevelClassLoaderSystemDeployer extends AbstractTopLevelClassLoaderSystemDeployer
/*    */ {
/*    */   protected VFSClassLoaderPolicy createTopLevelClassLoaderPolicy(DeploymentContext context, Module module)
/*    */     throws Exception
/*    */   {
/* 45 */     ClassPathVisitor visitor = new ClassPathVisitor();
/* 46 */     context.visit(visitor);
/* 47 */     Set classPath = visitor.getClassPath();
/*    */
/* 49 */     VirtualFile[] roots = new VirtualFile[classPath.size() + 1];
/* 50 */     int i = 0;
/* 51 */     for (VirtualFile path : classPath) {
/* 52 */       roots[(i++)] = path;
View Full Code Here

/* 111 */     Object[] args = { url, url, Boolean.TRUE };
/* 112 */     String[] sig = { "java.net.URL", "java.net.URL", "boolean" };
/* 113 */     RepositoryClassLoader ucl = (RepositoryClassLoader)server.invoke(loaderConfig.repositoryName, "newClassLoader", args, sig);
/*     */     try
/*     */     {
/* 118 */       ClassPathVisitor visitor = new ClassPathVisitor();
/* 119 */       context.visit(visitor);
/* 120 */       Set classpath = visitor.getClassPath();
/* 121 */       for (VirtualFile path : classpath)
/*     */       {
/* 124 */         if (path != root) {
/* 125 */           ucl.addURL(trimJARURL(path.toURL()));
/*     */         }
View Full Code Here

         else
            parent = parent.getParent();
      }
     
      // Get our classpath
      ClassPathVisitor visitor = new ClassPathVisitor(unit);
      unit.visit(visitor);
      Set<VirtualFile> rawClassPath = visitor.getClassPath();

      // We're creating the classpath
      List<VirtualFile> vfsClassPath = new ArrayList<VirtualFile>();
      unit.addAttachment(VFS_CLASS_PATH, vfsClassPath, List.class);
      Set<VirtualFile> vfsExcludes = new HashSet<VirtualFile>();
View Full Code Here

public class VFSTopLevelClassLoaderSystemDeployer extends AbstractTopLevelClassLoaderSystemDeployer
{
   @Override
   protected VFSClassLoaderPolicy createTopLevelClassLoaderPolicy(DeploymentContext context, Module module) throws Exception
   {
      ClassPathVisitor visitor = new ClassPathVisitor();
      context.visit(visitor);
      Set<VirtualFile> classPath = visitor.getClassPath();
     
      VirtualFile[] roots = new VirtualFile[classPath.size() + 1];
      int i = 0;
      for (VirtualFile path : classPath)
         roots[i++] = path;
View Full Code Here

TOP

Related Classes of org.jboss.deployers.vfs.spi.structure.helpers.ClassPathVisitor

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.