com.hazelcast.util
Class FilteringClassLoader
java.lang.Object
java.lang.ClassLoader
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
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 |
FilteringClassLoader
public FilteringClassLoader(List<String> excludePackages,
String enforcedSelfLoadingPackage)
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.