|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
no.sesat.search.site.config.ResourceClassLoader
no.sesat.search.site.config.SpiClassLoader
public final class SpiClassLoader
| Nested Class Summary | |
|---|---|
static interface |
SpiClassLoader.Context
The context this class needs. |
| Constructor Summary | |
|---|---|
SpiClassLoader(SpiClassLoader.Context context)
Creates a new spi class loader. |
|
| Method Summary | |
|---|---|
protected Class<?> |
findClass(String className)
Finds classes using a BytecodeLoader. |
protected String |
getJarName()
Returns the jar file the class must be contained in. |
Class<?> |
loadClass(String name,
boolean resolve)
Tries to load class, delegating to parent class loaders in the following order. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpiClassLoader(SpiClassLoader.Context context)
context - the context.| Method Detail |
|---|
public String toString()
toString in class Object
public Class<?> loadClass(String name,
boolean resolve)
throws ClassNotFoundException
loadClass in class ClassLoadername - the name of the class to find.resolve - if to resolve it.
ClassNotFoundException - if the class could not be found in any class loader.protected String getJarName()
getJarName in class ResourceClassLoader
protected Class<?> findClass(String className)
throws ClassNotFoundException
ResourceClassLoaderBytecodeLoader.
findClass in class ResourceClassLoaderclassName - the clas to find
ClassNotFoundException - if the class cannot be found in this class loader.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||