|
| static boolean | initSingleton () |
| | Documented way to kick off static initialization. More...
|
| |
| static boolean | isInitialized (final boolean forExecutables) |
| |
| static TempFileCache | getTempFileCache () |
| |
| static synchronized boolean | checkNativeLibs (final Uri jarUri, final LoadState exp) throws IOException |
| |
| static synchronized boolean | checkClasses (final Uri jarUri, final LoadState exp) throws IOException |
| |
| static synchronized boolean | checkResources (final Uri jarUri, final LoadState exp) throws IOException |
| |
| static synchronized final boolean | addNativeLibs (final Class<?> certClass, final Uri jarUri, final String nativeLibraryPath) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException |
| | Adds native libraries, if not yet added. More...
|
| |
| static synchronized final void | addClasses (final Class<?> certClass, final Uri jarUri) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException |
| | Adds native classes, if not yet added. More...
|
| |
| static synchronized final void | addResources (final Class<?> certClass, final Uri jarUri) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException |
| | Adds native resources, if not yet added. More...
|
| |
| static synchronized final void | addAll (final Class<?> certClass, final Uri jarUri) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException |
| | Adds all types, native libraries, class files and other files (resources) if not yet added. More...
|
| |
| static synchronized final String | findLibrary (final String libName) |
| | If isInitialized(true) is false due to lack of executable support only, this method always returns false. More...
|
| |
| static synchronized final String | findResource (final String name) |
| | TODO class access pending needs Classloader.defineClass(..) access, ie. More...
|
| |
| static synchronized final Uri | getResourceUri (final String name) throws URISyntaxException |
| | Similar to ClassLoader#getResource(String). More...
|
| |
Static Jar file cache handler using an underlying instance of TempFileCache, see getTempFileCache().
Lifecycle: Concurrently running JVMs and ClassLoader
Definition at line 52 of file TempJarCache.java.
| static synchronized final void com.jogamp.common.util.cache.TempJarCache.addAll |
( |
final Class<?> |
certClass, |
|
|
final Uri |
jarUri |
|
) |
| throws IOException, SecurityException, IllegalArgumentException, URISyntaxException |
|
static |
Adds all types, native libraries, class files and other files (resources) if not yet added.
TODO class access pending needs Classloader.defineClass(..) access, ie. own derivation - will do when needed ..
- Parameters
-
| certClass | if class is certified, the JarFile entries needs to have the same certificate |
| jarUri | |
- Exceptions
-
Definition at line 364 of file TempJarCache.java.
| static synchronized final String com.jogamp.common.util.cache.TempJarCache.findResource |
( |
final String |
name | ) |
|
|
static |
TODO class access pending needs Classloader.defineClass(..) access, ie.
own derivation - will do when needed .. public static Class<?> findClass(String name, ClassLoader cl) throws IOException, ClassFormatError { checkInitialized(); final File f = new File(nativeTmpFileCache.getTempDir(), IOUtil.getClassFileName(name)); if(f.exists()) { Class.forName(fname, initialize, loader) URL url = new URL(f.getAbsolutePath()); byte[] b = IOUtil.copyStream2ByteArray(new BufferedInputStream( url.openStream() )); MyClassLoader mcl = new MyClassLoader(cl); return mcl.defineClass(name, b, 0, b.length); } return null; } Similar to ClassLoader#getResource(String).
- Parameters
-
- Returns
- Exceptions
-
Definition at line 463 of file TempJarCache.java.