Package org.jboss.virtual

Examples of org.jboss.virtual.VirtualFileFilter


         VisitorAttributes va = new VisitorAttributes();
         va.setLeavesOnly(true);
         SuffixesExcludeFilter noJars = new SuffixesExcludeFilter(JarUtils.getSuffixes());
         va.setRecurseFilter(noJars);

         VirtualFileFilter filter = new VirtualFileFilter()
         {

            public boolean accepts(VirtualFile file)
            {
               boolean matched = false;
View Full Code Here


      VisitorAttributes attributes = visitor.getAttributes();
      boolean includeRoot = attributes.isIncludeRoot();
      boolean leavesOnly = attributes.isLeavesOnly();
      boolean ignoreErrors = attributes.isIgnoreErrors();
      boolean includeHidden = attributes.isIncludeHidden();
      VirtualFileFilter recurseFilter = attributes.getRecurseFilter();
      visit(handler, visitor, includeRoot, leavesOnly, ignoreErrors, includeHidden, recurseFilter);
   }
View Full Code Here

      VisitorAttributes attributes = visitor.getAttributes();
      boolean includeRoot = attributes.isIncludeRoot();
      boolean leavesOnly = attributes.isLeavesOnly();
      boolean ignoreErrors = attributes.isIgnoreErrors();
      boolean includeHidden = attributes.isIncludeHidden();
      VirtualFileFilter recurseFilter = attributes.getRecurseFilter();
      visit(handler, visitor, includeRoot, leavesOnly, ignoreErrors, includeHidden, recurseFilter);
   }
View Full Code Here

   }

   protected VFSDeploymentContext determineStructure(VFSDeployment deployment) throws Exception
   {
      GroupingStructure gs = new GroupingStructure();
      VirtualFileFilter top = new VirtualFileFilter()
      {
         public boolean accepts(VirtualFile file)
         {
            return file.getName().endsWith(".sar");
         }
View Full Code Here

   }
  
   protected VFSDeploymentContext determineStructure(VFSDeployment deployment) throws Exception
   {
      GroupingStructure gs = new GroupingStructure();
      VirtualFileFilter top = new VirtualFileFilter()
      {
         public boolean accepts(VirtualFile file)
         {
            return file.getName().endsWith(".esb");
         }
View Full Code Here

      return new XmlIncludeVirtualFileFilter();
   }

   protected VirtualFileFilter createRecurseFilter()
   {
      return new VirtualFileFilter()
      {
         public boolean accepts(VirtualFile file)
         {
            try
            {
View Full Code Here

   }

   protected StructureModificationChecker createStructureModificationChecker()
   {
      MainDeployerStructure mainDeployerStructure = getMainDeployerStructure();
      VirtualFileFilter filter = createFilter();
      VirtualFileFilter recurseFilter = createRecurseFilter();
      SynchAdapter synchAdapter = createSynchAdapter();

      MetaDataStructureModificationChecker mdsmc = new MetaDataStructureModificationChecker(mainDeployerStructure);
      mdsmc.setFilter(filter);
      mdsmc.start();
View Full Code Here

   }

   protected StructureModificationChecker createStructureModificationChecker()
   {
      MainDeployerStructure mainDeployer = getMainDeployerStructure();
      VirtualFileFilter filter = createFilter();
      return createStructureModificationChecker(mainDeployer, filter);
   }
View Full Code Here

  
   public void testRecurseInMetaInf() throws Exception
   {
      VFSDeploymentContext context = createDeploymentContext("/metadata", "toplevel/metadata-recurseinmetainf.jar");
      context.setMetaDataPath(Collections.singletonList("META-INF"));
      VirtualFileFilter filter = new ServicesFilter();
      Set<String> expected = new HashSet<String>();
      expected.add(getVfsURL("/metadata/toplevel/metadata-recurseinmetainf.jar/META-INF/jboss-service.xml"));
      expected.add(getVfsURL("/metadata/toplevel/metadata-recurseinmetainf.jar/META-INF/services/wsdl.xml"));
      assertMetaDataMatch(context, expected, filter);
   }
View Full Code Here

         VisitorAttributes va = new VisitorAttributes();
         va.setLeavesOnly(true);
         SuffixesExcludeFilter noJars = new SuffixesExcludeFilter(JarUtils.getSuffixes());
         va.setRecurseFilter(noJars);

         VirtualFileFilter filter = new VirtualFileFilter()
         {

            public boolean accepts(VirtualFile file)
            {
               boolean matched = false;
View Full Code Here

TOP

Related Classes of org.jboss.virtual.VirtualFileFilter

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.