Package aist.science.aistcv.helper
Class SharedLoader
- java.lang.Object
-
- aist.science.aistcv.helper.SharedLoader
-
public class SharedLoader extends Object
Implementation for loading a shared library
Modified from OpenPnP OpenCV
- Author:
- Christoph Praschl, Jason von Nieda, adambenhamo, sirrrich, phrack
-
-
Constructor Summary
Constructors Constructor Description SharedLoader(BinaryExtractor extractor)
Creates a shared loader and extracts the required binary to the temp folder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Removes the library path from theClassLoader.usr_paths
array, as well as to thejava.library.path
system property.Path
getLibraryPath()
gets value of fieldlibraryPath
-
-
-
Constructor Detail
-
SharedLoader
public SharedLoader(BinaryExtractor extractor)
Creates a shared loader and extracts the required binary to the temp folder- Parameters:
extractor
- used for extracting the required binary
-
-
Method Detail
-
getLibraryPath
public Path getLibraryPath()
gets value of fieldlibraryPath
- Returns:
- value of field libraryPath
- See Also:
libraryPath
-
cleanup
public void cleanup()
Removes the library path from theClassLoader.usr_paths
array, as well as to thejava.library.path
system property. Uses the reflection API to make the field accessible, and may be unsafe in environments with a security policy.
-
-