com.hazelcast.util
Class FilteringClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by com.hazelcast.util.FilteringClassLoader

public class FilteringClassLoader
extends ClassLoader

This is used to separate Server and Client inside the same JVM on new standalone client unittests!
NEVER EVER use this anywhere in production! :D


Constructor Summary
FilteringClassLoader(List<String> excludePackages, String enforcedSelfLoadingPackage)
           
 
Method Summary
 URL getResource(String name)
           
 InputStream getResourceAsStream(String name)
           
 Enumeration<URL> getResources(String name)
           
protected  Class<?> loadClass(String name, boolean resolve)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteringClassLoader

public FilteringClassLoader(List<String> excludePackages,
                            String enforcedSelfLoadingPackage)
Method Detail

getResource

public URL getResource(String name)
Overrides:
getResource in class ClassLoader

getResources

public Enumeration<URL> getResources(String name)
                              throws IOException
Overrides:
getResources in class ClassLoader
Throws:
IOException

getResourceAsStream

public InputStream getResourceAsStream(String name)
Overrides:
getResourceAsStream in class ClassLoader

loadClass

protected Class<?> loadClass(String name,
                             boolean resolve)
                      throws ClassNotFoundException
Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.