public class MemClassLoader extends ClassLoader implements AutoCloseable, ResourceLoader
Constructor and Description |
---|
MemClassLoader(List<PluginBag.RuntimeLib> libs,
SolrResourceLoader resourceLoader) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected Class<?> |
findClass(String name) |
<T> Class<? extends T> |
findClass(String cname,
Class<T> expectedType) |
void |
loadJars() |
<T> T |
newInstance(String cname,
Class<T> expectedType) |
InputStream |
openResource(String resource) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public MemClassLoader(List<PluginBag.RuntimeLib> libs, SolrResourceLoader resourceLoader)
public void loadJars()
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class ClassLoader
ClassNotFoundException
public void close() throws Exception
close
in interface AutoCloseable
Exception
public InputStream openResource(String resource) throws IOException
openResource
in interface ResourceLoader
IOException
public <T> Class<? extends T> findClass(String cname, Class<T> expectedType)
findClass
in interface ResourceLoader
public <T> T newInstance(String cname, Class<T> expectedType)
newInstance
in interface ResourceLoader
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.