Package org.jboss.classloader.spi.filter

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


     
      // Add FilteredDelegateLoaders for all collected package requirements
      for (Entry<ClassLoaderPolicy, List<String>> entry : delegateToRequiredPackages.entrySet())
      {
         PackageClassFilter filter = PackageClassFilter.createPackageClassFilter(entry.getValue());
         delegates.add(new FilteredDelegateLoader(entry.getKey(), filter));
      }
   }
View Full Code Here


   public DelegateLoader getExported()
   {
      String[] packageNames = getPackageNames();
      if (packageNames == null)
         return null;
      return new FilteredDelegateLoader(this, PackageClassFilter.createPackageClassFilter(packageNames));
   }
View Full Code Here

   @Override
   public DelegateLoader getExported()
   {
      if (getExportAll() != null)
         return new FilteredDelegateLoader(this, ClassFilterUtils.EVERYTHING);
      return super.getExported();
   }
View Full Code Here

   public DelegateLoader getExported()
   {
      String[] packageNames = getPackageNames();
      if (packageNames == null)
         return null;
      return new FilteredDelegateLoader(this, PackageClassFilter.createPackageClassFilter(packageNames));
   }
View Full Code Here

   @Override
   public DelegateLoader getExported()
   {
      if (getExportAll() != null)
         return new FilteredDelegateLoader(this, ClassFilter.EVERYTHING);
      return super.getExported();
   }
View Full Code Here

   protected DelegateLoader getExported()
   {
      String[] packageNames = getPackageNames();
      if (packageNames == null)
         return null;
      return new FilteredDelegateLoader(this, PackageClassFilter.createPackageClassFilter(packageNames));
   }
View Full Code Here

     
      // Add FilteredDelegateLoaders for all collected package requirements
      for (Entry<ClassLoaderPolicy, List<String>> entry : delegateToRequiredPackages.entrySet())
      {
         PackageClassFilter filter = PackageClassFilter.createPackageClassFilter(entry.getValue());
         delegates.add(new FilteredDelegateLoader(entry.getKey(), filter));
      }
   }
View Full Code Here

      Requirement requirement = item.getRequirement();
      if (requirement instanceof PackageRequirement)
      {
         PackageRequirement pr = (PackageRequirement) requirement;
         ClassFilter filter = PackageClassFilter.createPackageClassFilter(pr.getName());
         return new FilteredDelegateLoader(factory, filter);
      }
      else
      {
         return new LazyFilteredDelegateLoader(factory);
      }
View Full Code Here

      MockClassLoaderPolicy policy = createMockClassLoaderPolicy();
      policy.setPathsAndPackageNames(TestA1.class);
      system.registerClassLoaderPolicy(policy);
     
      FilteredDelegateLoader delegate = new FilteredDelegateLoader(policy);
      assertLoadClass(TestA1.class, delegate);
   }
View Full Code Here

      MockClassLoaderPolicy policy = createMockClassLoaderPolicy();
      policy.setPathsAndPackageNames(TestA1.class);
      system.registerClassLoaderPolicy(policy);
     
      FilteredDelegateLoader delegate = new FilteredDelegateLoader(policy, ClassFilterUtils.NOTHING);
      assertLoadClassFail(TestA1.class, delegate);
   }
View Full Code Here

TOP

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

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.