| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static Map | |
| private static final boolean | |
| private static volatile boolean | |
| private static Map | |
| private static Map | |
| private static Map | |
| private static volatile boolean | |
| private static TempFileCache |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final synchronized void | |
| public static final synchronized void | addClasses(final Class<?>
if class is certified, the JarFile entries needs to have the same certificate certClass, final Uri jarUri)Adds native classes, if not yet added. |
| public static final synchronized boolean | Returns: true if native libraries were added or previously loaded from given jarUri, otherwise falseif class is certified, the JarFile entries needs to have the same certificate certClass, final Uri jarUri, final String if not null, only extracts native libraries within this path. nativeLibraryPath)Adds native libraries, if not yet added. |
| public static final synchronized void | addResources(final Class<?> certClass, final URI jarURI)
Deprecated
Use
See addResources(Class, Uri)
addResources(Class, Uri)
|
| public static final synchronized void | addResources(final Class<?>
if class is certified, the JarFile entries needs to have the same certificate certClass, final Uri jarUri)Adds native resources, if not yet added. |
| public static synchronized boolean | |
| pack-priv static void | |
| public static synchronized boolean | |
| public static synchronized boolean | |
| public static final synchronized String | |
| public static final synchronized String | |
| public static final synchronized URI | |
| public static final synchronized Uri | |
| public static TempFileCache | |
| public static boolean | Returns: true is static initialization was successfulDocumented way to kick off static initialization. |
| public static boolean | Returns: true if this class has been properly initialized, ie. is in use, otherwise false.
|
| private static boolean | isInitializedImpl()
This is not recommended since the JNI libraries may still be
in use by the ClassLoader they are loaded via |
| private static boolean | |
| private static void |
| classFileJars | back to summary |
|---|---|
| private static Map<Uri, TempJarCache. | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| isInit | back to summary |
|---|---|
| private static volatile boolean isInit | |
| nativeLibJars | back to summary |
|---|---|
| private static Map<Uri, TempJarCache. | |
| nativeLibMap | back to summary |
|---|---|
| private static Map<String, String> nativeLibMap | |
| resourceFileJars | back to summary |
|---|---|
| private static Map<Uri, TempJarCache. | |
| staticInitError | back to summary |
|---|---|
| private static volatile boolean staticInitError | |
| tmpFileCache | back to summary |
|---|---|
| private static TempFileCache tmpFileCache | |
| TempJarCache | back to summary |
|---|---|
| public TempJarCache() | |
| addAll | back to summary |
|---|---|
| public static final synchronized 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. TODO class access pending needs Classloader.defineClass(..) access, ie. own derivation - will do when needed ..
| |
| addClasses | back to summary |
|---|---|
| public static final synchronized void addClasses(final Class<?> certClass, final Uri jarUri) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException Adds native classes, if not yet added. TODO class access pending needs Classloader.defineClass(..) access, ie. own derivation - will do when needed ..
| |
| addNativeLibs | back to summary |
|---|---|
| public static final synchronized boolean addNativeLibs(final Class<?> certClass, final Uri jarUri, final String nativeLibraryPath) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException Adds native libraries, if not yet added.
| |
| addResources | back to summary |
|---|---|
| public static final synchronized void addResources(final Class<?> certClass, final URI jarURI) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException
Deprecated | |
| addResources | back to summary |
|---|---|
| public static final synchronized void addResources(final Class<?> certClass, final Uri jarUri) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException Adds native resources, if not yet added.
| |
| checkClasses | back to summary |
|---|---|
| public static synchronized boolean checkClasses(final Uri jarUri, final TempJarCache. | |
| checkInitialized | back to summary |
|---|---|
| pack-priv static void checkInitialized() | |
| checkNativeLibs | back to summary |
|---|---|
| public static synchronized boolean checkNativeLibs(final Uri jarUri, final TempJarCache. | |
| checkResources | back to summary |
|---|---|
| public static synchronized boolean checkResources(final Uri jarUri, final TempJarCache. | |
| findLibrary | back to summary |
|---|---|
| public static final synchronized String findLibrary(final String libName) | |
| findResource | back to summary |
|---|---|
| public static final synchronized String findResource(final String name) Similar to | |
| getResource | back to summary |
|---|---|
| public static final synchronized URI getResource(final String name) throws URISyntaxException
Deprecated | |
| getResourceUri | back to summary |
|---|---|
| public static final synchronized Uri getResourceUri(final String name) throws URISyntaxException Similar to | |
| getTempFileCache | back to summary |
|---|---|
| public static TempFileCache getTempFileCache() | |
| initSingleton | back to summary |
|---|---|
| public static boolean initSingleton() Documented way to kick off static initialization.
| |
| isInitialized | back to summary |
|---|---|
public static boolean isInitialized()
| |
| isInitializedImpl | back to summary |
|---|---|
| private static boolean isInitializedImpl() This is not recommended since the JNI libraries may still be
in use by the ClassLoader they are loaded via
In JogAmp, JNI native libraries loaded and registered by The only valid use case to shutdown the TempJarCache is at bootstrapping, i.e. when no native library is guaranteed to be loaded. This could be useful if bootstrapping needs to find the proper native library type. public static void shutdown() { if (isInit) { // volatile: ok synchronized (TempJarCache.class) { if (isInit) { if(DEBUG) { System.err.println("TempJarCache.shutdown(): real "+(false==staticInitError)+", "+ tmpFileCache.getTempDir()); } isInit = false; if(!staticInitError) { nativeLibMap.clear(); nativeLibMap = null; nativeLibJars.clear(); nativeLibJars = null; classFileJars.clear(); classFileJars = null; resourceFileJars.clear(); resourceFileJars = null; tmpFileCache.destroy(); tmpFileCache = null; } } } } } | |
| testLoadState | back to summary |
|---|---|
| private static boolean testLoadState(final TempJarCache. | |
| validateCertificates | back to summary |
|---|---|
| private static void validateCertificates(final Class<?> certClass, final JarFile jarFile) throws IOException, SecurityException | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TempJarCache. | |
| public static final TempJarCache. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public static TempJarCache. | |
| public static TempJarCache. |
| LOADED | back to summary |
|---|---|
| public static final TempJarCache. | |
| LOOKED_UP | back to summary |
|---|---|
| public static final TempJarCache. | |
| LoadState | back to summary |
|---|---|
| private LoadState() | |
| compliesWith | back to summary |
|---|---|
| public boolean compliesWith(final TempJarCache. | |
| valueOf | back to summary |
|---|---|
| public static TempJarCache. | |
| values | back to summary |
|---|---|
| public static TempJarCache. | |