Package org.jboss.classloader.spi.filter

Examples of org.jboss.classloader.spi.filter.ClassFilter


   @Override
   protected void afterGetResources(String name, Set<URL> urls) throws IOException
   {
      boolean trace = log.isTraceEnabled();
      ClassFilter filter = getParentPolicy().getAfterFilter();
      if (filter.matchesResourcePath(name))
      {
         if (trace)
            log.trace(this + " " + name + " matches parent afterFilter=" + filter);
         getResourcesFromParent(name, urls);
      }
View Full Code Here


  
   @Override
   protected Package beforeGetPackage(String name)
   {
      boolean trace = log.isTraceEnabled();
      ClassFilter filter = getParentPolicy().getBeforeFilter();
      if (filter.matchesPackageName(name))
      {
         if (trace)
            log.trace(this + " " + name + " matches parent beforeFilter=" + filter);
         return getPackageFromParent(name);
      }
View Full Code Here

   @Override
   protected Package afterGetPackage(String name)
   {
      boolean trace = log.isTraceEnabled();
      ClassFilter filter = getParentPolicy().getAfterFilter();
      if (filter.matchesPackageName(name))
      {
         if (trace)
            log.trace(this + " " + name + " matches parent afterFilter=" + filter);
         return getPackageFromParent(name);
      }
View Full Code Here

   }
  
   @Override
   protected void beforeGetPackages(Set<Package> packages)
   {
      ClassFilter filter = getParentPolicy().getBeforeFilter();
      getPackagesFromParent(packages, filter);
   }
View Full Code Here

   }

   @Override
   protected void afterGetPackages(Set<Package> packages)
   {
      ClassFilter filter = getParentPolicy().getAfterFilter();
      getPackagesFromParent(packages, filter);
   }
View Full Code Here

            {
               cfs[i++] = fmd.isRecurse() ?
                     RecursivePackageClassFilter.createRecursivePackageClassFilterFromString(fmd.getValue()) :
                     PackageClassFilter.createPackageClassFilterFromString(fmd.getValue());
            }
            ClassFilter filter = new CombiningClassFilter(false, cfs);
            lifecycle.setLazyStartFilter(filter);
         }
      }
      return lifecycle;
   }
View Full Code Here

      this.parentPolicy = parentPolicy;
   }

   public boolean isParentAfter(String classname)
   {
      ClassFilter filter = parentPolicy.getAfterFilter();
      boolean isParentAfter = filter.matchesClassName(ClassLoaderUtils.stripArrayFromClassName(classname));
      if (logger.isTraceEnabled()) logger.trace(this + " " + getDomain() + " isParentAfter " + isParentAfter);     
      return isParentAfter;
   }
View Full Code Here

      return isParentAfter;
   }

   public boolean isParentBefore(String classname)
   {
      ClassFilter filter = parentPolicy.getBeforeFilter();
      boolean isParentBefore = filter.matchesClassName(ClassLoaderUtils.stripArrayFromClassName(classname));
      if (logger.isTraceEnabled()) logger.trace(this + " " + getDomain() + " isParentBefore " + isParentBefore);
      return isParentBefore;
   }
View Full Code Here

      Object version = getVersion();
      Capability capability = factory.createModule(getName(), version);
      capabilities.add(capability);
     
      // Do we determine package capabilities
      ClassFilter included = getIncluded();
      ClassFilter excluded = getExcluded();
      ClassFilter excludedExport = getExcludedExport();
      ExportAll exportAll = getExportAll();
      if (exportAll != null)
      {
         Set<String> exportedPackages = PackageVisitor.determineAllPackages(roots, null, exportAll, included, excluded, excludedExport);
         for (String packageName : exportedPackages)
View Full Code Here

         throw new IllegalStateException("ClassLoader has not been constructed for " + getContextName());

      VirtualFile[] roots = determineVFSRoots();
      if (roots != null && roots.length > 0)
      {
         ClassFilter included = getIncluded();
         ClassFilter excluded = getExcluded();
         VFSResourceVisitor.visit(roots, null, included, excluded, classLoader, visitor, filter, recurseFilter, urls);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.classloader.spi.filter.ClassFilter

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.