|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.caucho.loader.DynamicClassLoader
com.caucho.loader.EnvironmentClassLoader
com.caucho.loader.SystemClassLoader
public class SystemClassLoader
ClassLoader that initalizes the environment and allows byte code enhancement of classes in the system classpath.
java -Djava.system.class.loader=com.caucho.loader.SystemClassLoader ...If the system property "system.conf" is defined, it is used as a path to a configuration file that initializes the enviornment. Relative paths are relative to the current directory (See
Vfs.getPwd().
Resources defined in system.conf are available to all classes loaded within the jvm.
java -Dsystem.conf=tests/system.conf -Djava.system.class.loader=com.caucho.loader.SystemClassLoader ...
| Constructor Summary | |
|---|---|
SystemClassLoader(java.lang.ClassLoader parent)
Creates a new SystemClassLoader. |
|
| Method Summary | |
|---|---|
java.lang.String |
findLibrary(java.lang.String name)
Returns the full library path for the name. |
java.lang.ClassLoader |
getClassLoader()
|
protected java.lang.String |
getSchema()
|
void |
init()
Initialize the environment. |
protected void |
initEnvironment()
|
boolean |
isJarCacheEnabled()
Returns true if jar entries should be cached. |
java.lang.Class<?> |
loadClassImpl(java.lang.String name,
boolean resolve)
Load a class using this class loader |
| Methods inherited from class java.net.URLClassLoader |
|---|
definePackage, findResource, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SystemClassLoader(java.lang.ClassLoader parent)
| Method Detail |
|---|
public boolean isJarCacheEnabled()
DynamicClassLoader
isJarCacheEnabled in class DynamicClassLoaderpublic java.lang.ClassLoader getClassLoader()
getClassLoader in interface EnvironmentBeanpublic void init()
EnvironmentClassLoader
init in class EnvironmentClassLoaderprotected void initEnvironment()
initEnvironment in class EnvironmentClassLoader
public java.lang.Class<?> loadClassImpl(java.lang.String name,
boolean resolve)
throws java.lang.ClassNotFoundException
loadClassImpl in class DynamicClassLoadername - the classname to loadresolve - if true, resolve the class
java.lang.ClassNotFoundExceptionprotected java.lang.String getSchema()
public java.lang.String findLibrary(java.lang.String name)
findLibrary in class DynamicClassLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||