| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final boolean | |
| private static final InternalLogger | |
| private static final String | |
| private static final boolean | |
| private static final byte[] | |
| private static final File |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | calculateMangledPackagePrefix()
Calculates the mangled shading prefix added to this class's full name. |
| private static byte[] | Returns: The binary content of helperClass.- The helper clazz)Class provided by this bundleLoad the helper |
| private static void | |
| private static byte[] | |
| private static byte[] | |
| private static URL | |
| public static void | |
| public static void | loadFirstAvailable(ClassLoader loader, String... names)
Loads the first available library in the collection with the specified
|
| private static void | loadLibrary(final ClassLoader
- The loader, final String ClassLoader where the native library will be loaded into- The native library path or name name, final boolean - Whether the native library will be loaded by path or by name absolute)Loading the native library into the specified |
| private static void | |
| private static void | |
| private static boolean | |
| private static boolean | |
| pack-priv static void | |
| private static Class | Returns: A new helper Class defined in the specified ClassLoader.- The loader, final Class<?> ClassLoader where to load the helper Class- The helper helper)ClassTry to load the helper |
| DELETE_NATIVE_LIB_AFTER_LOADING | back to summary |
|---|---|
| private static final boolean DELETE_NATIVE_LIB_AFTER_LOADING | |
| DETECT_NATIVE_LIBRARY_DUPLICATES | back to summary |
|---|---|
| private static final boolean DETECT_NATIVE_LIBRARY_DUPLICATES | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| NATIVE_RESOURCE_HOME | back to summary |
|---|---|
| private static final String NATIVE_RESOURCE_HOME | |
| TRY_TO_PATCH_SHADED_ID | back to summary |
|---|---|
| private static final boolean TRY_TO_PATCH_SHADED_ID | |
| UNIQUE_ID_BYTES | back to summary |
|---|---|
| private static final byte[] UNIQUE_ID_BYTES | |
| WORKDIR | back to summary |
|---|---|
| private static final File WORKDIR | |
| NativeLibraryLoader | back to summary |
|---|---|
| private NativeLibraryLoader() | |
| calculateMangledPackagePrefix | back to summary |
|---|---|
| private static String calculateMangledPackagePrefix() Calculates the mangled shading prefix added to this class's full name. This method mangles the package name as follows, so we can unmangle it back later:
Note that we don't mangle non-ASCII characters here because it's extremely unlikely to have a non-ASCII character in a package name. For more information, see:
| |
| classToByteArray | back to summary |
|---|---|
| private static byte[] classToByteArray(Class<?> clazz) throws ClassNotFoundException Load the helper
| |
| closeQuietly | back to summary |
|---|---|
| private static void closeQuietly(Closeable c) | |
| digest | back to summary |
|---|---|
| private static byte[] digest(MessageDigest digest, URL url) | |
| generateUniqueId | back to summary |
|---|---|
| private static byte[] generateUniqueId(int length) | |
| getResource | back to summary |
|---|---|
| private static URL getResource(String path, ClassLoader loader) | |
| load | back to summary |
|---|---|
| public static void load(String originalName, ClassLoader loader) Load the given library with the specified | |
| loadFirstAvailable | back to summary |
|---|---|
| public static void loadFirstAvailable(ClassLoader loader, String... names) Loads the first available library in the collection with the specified
| |
| loadLibrary | back to summary |
|---|---|
| private static void loadLibrary(final ClassLoader loader, final String name, final boolean absolute) Loading the native library into the specified
| |
| loadLibraryByHelper | back to summary |
|---|---|
| private static void loadLibraryByHelper(final Class<?> helper, final String name, final boolean absolute) throws UnsatisfiedLinkError | |
| rethrowWithMoreDetailsIfPossible | back to summary |
|---|---|
| private static void rethrowWithMoreDetailsIfPossible(String name, NoSuchMethodError error) | |
| shouldShadedLibraryIdBePatched | back to summary |
|---|---|
| private static boolean shouldShadedLibraryIdBePatched(String packagePrefix) | |
| tryExec | back to summary |
|---|---|
| private static boolean tryExec(String cmd) | |
| tryPatchShadedLibraryIdAndSign | back to summary |
|---|---|
| pack-priv static void tryPatchShadedLibraryIdAndSign(File libraryFile, String originalName) | |
| tryToLoadClass | back to summary |
|---|---|
| private static Class Try to load the helper
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean |
| NoexecVolumeDetector | back to summary |
|---|---|
| private NoexecVolumeDetector() | |
| canExecuteExecutable | back to summary |
|---|---|
| private static boolean canExecuteExecutable(File file) throws IOException | |