|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
php.java.bridge.DynamicClassLoader
php.java.bridge.DynamicJavaBridgeClassLoader
public class DynamicJavaBridgeClassLoader
The bridge class loader which uses the DynamicClassLoader when possible.
| Field Summary |
|---|
| Fields inherited from class php.java.bridge.DynamicClassLoader |
|---|
defaultCacheTimeout, defaultLazy |
| Method Summary | |
|---|---|
static JarLibraryPath |
checkJarLibraryPath(java.lang.String rawPath,
java.lang.String rawContextDir,
java.lang.String cwd,
java.lang.String searchpath)
Set the library path for the bridge instance. |
void |
clear()
Clear the loader so that it can be used in new requests. |
DynamicJavaBridgeClassLoader |
clearVMLoader()
The VM associates a map with each loader to speed up Class.forName(). |
java.lang.Class |
loadClass(java.lang.String name)
I have decided to override loadClass instead of findClass, so that this method will actually get to re-load classes if neccessary. |
static DynamicJavaBridgeClassLoader |
newInstance(java.lang.ClassLoader parent)
Create an instance of the dynamic java bridge classloader It may return null due to security restrictions on certain systems, so don't use this method directly but call: new JavaBridgeClassLoader(bridge, DynamicJavaBridgeClassLoader.newInstance()) instead. |
void |
reset()
Reset to initial state. |
java.lang.String |
toString()
|
void |
updateJarLibraryPath(JarLibraryPath path)
Update the library path for the bridge instance. |
void |
updateJarLibraryPath(java.lang.String rawPath,
java.lang.String rawContextDir,
java.lang.String cwd,
java.lang.String searchpath)
Update the library path for the bridge instance. |
| Methods inherited from class php.java.bridge.DynamicClassLoader |
|---|
addURL, addURL, addURLs, addURLs, addURLs, addURLs, clearCache, debugMsg, destroyObserver, findResource, findResources, getStringFromURLArray, getURLArrayFromString, invalidate, invalidate, setCacheTimeout, setLazy, setUrlClassLoaderFactory |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static JarLibraryPath checkJarLibraryPath(java.lang.String rawPath,
java.lang.String rawContextDir,
java.lang.String cwd,
java.lang.String searchpath)
throws java.io.IOException
rawPath - The pathrawContextDir - The context dir, e.g. /usr/lib/php/extensionssearchpath - cwd -
java.io.IOException
public void updateJarLibraryPath(java.lang.String rawPath,
java.lang.String rawContextDir,
java.lang.String cwd,
java.lang.String searchpath)
throws java.io.IOException
rawPath - The pathrawContextDir - The context dir, e.g. /usr/lib/php/extensionssearchpath - cwd -
java.io.IOExceptionpublic void updateJarLibraryPath(JarLibraryPath path)
path - the checked JarLibraryPath
java.io.IOException#checkJarLibraryPath(String, String)public DynamicJavaBridgeClassLoader clearVMLoader()
public void reset()
public void clear()
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.Class loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
DynamicClassLoader
loadClass in class DynamicClassLoaderjava.lang.ClassNotFoundExceptionpublic static DynamicJavaBridgeClassLoader newInstance(java.lang.ClassLoader parent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||