|
||||||||||
| 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.ClassLoader |
getClassLoader()
|
protected java.lang.String |
getSchema()
|
void |
init()
Initialize the environment. |
protected void |
initEnvironment()
|
java.lang.Class |
loadClassImpl(java.lang.String name,
boolean resolve)
Load a class using this class loader |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.loader.EnvironmentClassLoader |
|---|
addListener, addLoaderListener, addScanListener, addURL, buildImportClassPath, configureEnhancerEvent, create, create, create, create, destroy, findImportClass, getAdmin, getAttribute, getConfigException, getEnvironmentListeners, getLoaderListeners, getOsgiManager, getOwner, initializeEnvironment, isActive, removeAttribute, removeListener, replace, scan, setAttribute, setConfigException, setOwner, start, stop, validate |
| 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, getResources, 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 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 toString()
toString in class EnvironmentClassLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||