public final class ClassLoaderCache extends Object implements AutoCloseable
Constructor and Description |
---|
ClassLoaderCache() |
Modifier and Type | Method and Description |
---|---|
ClassLoaderCache |
addRef() |
void |
close() |
ClassLoader |
getClassLoaderForClassPath(ClassLoader parentClassLoader,
com.google.common.collect.ImmutableList<URL> classPath) |
void |
injectClassLoader(ClassLoader parentClassLoader,
com.google.common.collect.ImmutableList<URL> classPath,
ClassLoader injectedClassLoader) |
public ClassLoader getClassLoaderForClassPath(@Nullable ClassLoader parentClassLoader, com.google.common.collect.ImmutableList<URL> classPath)
public void injectClassLoader(@Nullable ClassLoader parentClassLoader, com.google.common.collect.ImmutableList<URL> classPath, ClassLoader injectedClassLoader)
public ClassLoaderCache addRef()
public void close() throws IOException
close
in interface AutoCloseable
IOException