|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.bridge.SimpleJavaBridgeClassLoader
php.java.bridge.JavaBridgeClassLoader
public class JavaBridgeClassLoader
A bridge pattern which allows us to vary the class loader as run-time. The decision is based on whether we are allowed to use a dynamic classloader or not (cl==null) or security exception at run-time.
DynamicJavaBridgeClassLoader,
ClassLoader| Constructor Summary | |
|---|---|
JavaBridgeClassLoader(java.lang.ClassLoader xloader)
|
|
| Method Summary | |
|---|---|
void |
clear()
clear the caches and the input vectors, clear the VM cache and set a new ThreadContextClassLoader |
void |
clearCaches()
clear all loader caches but not the input vectors, clear the VM cache and set a new ThreadContextClassLoader |
void |
reset()
reset loader to the loader to its initial state, clear the VM cache and set a new ThreadContextClassLoader This is only called by the API function "java_reset()", which is deprecated. |
void |
switcheThreadContextClassLoader()
Enable the DynamicJavaBridgeClassLoader, if needed. |
void |
updateJarLibraryPath(java.lang.String path,
java.lang.String extensionDir)
Append the path to the current library path |
| Methods inherited from class php.java.bridge.SimpleJavaBridgeClassLoader |
|---|
forName, getClassLoader, getContextClassLoader, getDefaultClassLoader, getDefaultClassLoader |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaBridgeClassLoader(java.lang.ClassLoader xloader)
| Method Detail |
|---|
public void reset()
reset in class SimpleJavaBridgeClassLoaderpublic void clearCaches()
clearCaches in class SimpleJavaBridgeClassLoaderpublic void clear()
clear in class SimpleJavaBridgeClassLoader
public void updateJarLibraryPath(java.lang.String path,
java.lang.String extensionDir)
throws java.io.IOException
updateJarLibraryPath in class SimpleJavaBridgeClassLoaderpath - A file or url list, separated by ';'extensionDir - Usually ini_get("extension_dir");
java.io.IOExceptionpublic void switcheThreadContextClassLoader()
switcheThreadContextClassLoader in class SimpleJavaBridgeClassLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||