Package org.jboss.vfs

Examples of org.jboss.vfs.VirtualFile.visit()


      if (context == null)
         throw new IllegalArgumentException("Null context");

      VirtualFile file = context.getFile();
      VirtualFileVisitor visitor = candidateStructureVisitorFactory.createVisitor(context, attributes);
      file.visit(visitor);
   }

   /**
    * Add all children as candidates
    *
 
View Full Code Here


      if (context == null)
         throw new IllegalArgumentException("Null context");

      VirtualFile file = context.getFile();
      VirtualFileVisitor visitor = candidateStructureVisitorFactory.createVisitor(context, attributes);
      file.visit(visitor);
   }

   /**
    * Add all children as candidates
    *
 
View Full Code Here

      if (modified == false && root != deploymentContext.getRoot())
      {
         // check for update or delete
         VirtualFile tempRoot = deploymentContext.getRoot();
         UpdateDeleteVisitor udVisitor = new UpdateDeleteVisitor(filter, tempAttributes, getCache(), synchAdapter, root, tempRoot);
         tempRoot.visit(udVisitor);
         // check for addition
         AddVisitor addVisitor = new AddVisitor(filter, originalAttributes, getCache(), synchAdapter, root, tempRoot);
         root.visit(addVisitor);
      }
      return modified;
View Full Code Here

      if (context == null)
         throw new IllegalArgumentException("Null context");

      VirtualFile file = context.getFile();
      VirtualFileVisitor visitor = candidateStructureVisitorFactory.createVisitor(context, attributes);
      file.visit(visitor);
   }

   /**
    * Add all children as candidates
    *
 
View Full Code Here

                url = urls.nextElement();
                if (log.isTraceEnabled()) {
                    log.trace("URL from classloader: " + url);
                }
                VirtualFile root = VFS.getChild(url);
                root.visit(new MatchingClassVisitor(test, classes));
            } catch (IOException ioe) {
                log.warn("Could not read entries in url: " + url, ioe);
            } catch (URISyntaxException e) {
                log.warn("Could not read entries in url: " + url, e);
            }
View Full Code Here

   {
      final VirtualFileFilter filter = getFilter();
      final VirtualFileFilterAdapter filterAdapter = new VirtualFileFilterAdapter(filter);
      final VirtualFile virtuFile = getRoot();
      final FilterVirtualFileVisitor visitor = new FilterVirtualFileVisitor(filterAdapter, VisitorAttributes.RECURSE_LEAVES_ONLY);
      virtuFile.visit(visitor);
     
      final List<VirtualFile> matched = visitor.getMatched();
     
      assertEquals(4, matched.size());
   }
View Full Code Here

     */
    public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException {
        final VirtualFile deploymentRoot = getVirtualFileAttachment(context);
        final List<VirtualFile> list = new ArrayList<VirtualFile>(1);
        try {
            deploymentRoot.visit(new VirtualFileVisitor() {
                public void visit(VirtualFile virtualFile) {
                    if (virtualFile.getName().endsWith(".jar")) {
                        list.add(virtualFile);
                    }
                }
View Full Code Here

      if (context == null)
         throw new IllegalArgumentException("Null context");

      VirtualFile file = context.getFile();
      VirtualFileVisitor visitor = candidateStructureVisitorFactory.createVisitor(context, attributes);
      file.visit(visitor);
   }

   /**
    * Add all children as candidates
    *
 
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.