public class TempJarCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TempJarCache.LoadState |
Constructor and Description |
---|
TempJarCache() |
Modifier and Type | Method and Description |
---|---|
static void |
addAll(Class<?> certClass,
URI jarURI)
Adds all types, native libraries, class files and other files (resources)
if not yet added.
|
static void |
addClasses(Class<?> certClass,
URI jarURI)
Adds native classes, if not yet added.
|
static void |
addNativeLibs(Class<?> certClass,
URI jarURI)
Adds native libraries, if not yet added.
|
static void |
addResources(Class<?> certClass,
URI jarURI)
Adds native resources, if not yet added.
|
static void |
bootstrapNativeLib(Class<?> certClass,
String libBaseName,
URI jarURI)
Bootstrapping version extracting the JAR files root entry containing libBaseName,
assuming it's a native library.
|
static boolean |
checkClasses(URI jarURI,
TempJarCache.LoadState exp) |
static boolean |
checkNativeLibs(URI jarURI,
TempJarCache.LoadState exp) |
static boolean |
checkResources(URI jarURI,
TempJarCache.LoadState exp) |
static String |
findLibrary(String libName) |
static String |
findResource(String name)
TODO class access pending
needs Classloader.defineClass(..) access, ie.
|
static URI |
getResource(String name) |
static TempFileCache |
getTempFileCache() |
static boolean |
initSingleton()
Documented way to kick off static initialization.
|
static boolean |
isInitialized() |
public static boolean initSingleton()
public static boolean isInitialized()
public static TempFileCache getTempFileCache()
public static boolean checkNativeLibs(URI jarURI, TempJarCache.LoadState exp) throws IOException
IOException
public static boolean checkClasses(URI jarURI, TempJarCache.LoadState exp) throws IOException
IOException
public static boolean checkResources(URI jarURI, TempJarCache.LoadState exp) throws IOException
IOException
public static final void addNativeLibs(Class<?> certClass, URI jarURI) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException
certClass
- if class is certified, the JarFile entries needs to have the same certificatejarURI
- IOException
- if the jarURI
could not be loaded or a previous load attempt failedSecurityException
URISyntaxException
IllegalArgumentException
public static final void addClasses(Class<?> certClass, URI jarURI) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException
certClass
- if class is certified, the JarFile entries needs to have the same certificatejarURI
- IOException
- if the jarURI
could not be loaded or a previous load attempt failedSecurityException
URISyntaxException
IllegalArgumentException
public static final void addResources(Class<?> certClass, URI jarURI) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException
certClass
- if class is certified, the JarFile entries needs to have the same certificatejarURI
- IOException
- if the jarURI
could not be loaded or a previous load attempt failedSecurityException
URISyntaxException
IllegalArgumentException
public static final void addAll(Class<?> certClass, URI jarURI) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException
certClass
- if class is certified, the JarFile entries needs to have the same certificatejarURI
- IOException
- if the jarURI
could not be loaded or a previous load attempt failedSecurityException
URISyntaxException
IllegalArgumentException
public static final String findResource(String name)
public static final URI getResource(String name) throws URISyntaxException
URISyntaxException
public static final void bootstrapNativeLib(Class<?> certClass, String libBaseName, URI jarURI) throws IOException, SecurityException, IllegalArgumentException, URISyntaxException
certClass
- if class is certified, the JarFile entries needs to have the same certificateIOException
SecurityException
URISyntaxException
IllegalArgumentException