MCPcopy Index your code
hub / github.com/java-native-access/jna / getInstance

Method getInstance

src/com/sun/jna/NativeLibrary.java:422–424  ·  view source on GitHub ↗

Returns an instance of NativeLibrary for the specified name. The library is loaded if not already loaded. If already loaded, the existing instance is returned. More than one name may map to the same NativeLibrary instance; only a single instance will be provided for any given unique file path.

(String libraryName)

Source from the content-addressed store, hash-verified

420 * the full path to the library (e.g. "/lib/libc.so.6").
421 */
422 public static final NativeLibrary getInstance(String libraryName) {
423 return getInstance(libraryName, Collections.<String, Object>emptyMap());
424 }
425
426 /**
427 * Returns an instance of NativeLibrary for the specified name.

Calls 14

isLinuxMethod · 0.95
isFreeBSDMethod · 0.95
isDragonFlyBSDMethod · 0.95
isAIXMethod · 0.95
openMethod · 0.95
openFlagsMethod · 0.95
loadLibraryMethod · 0.95
getNameMethod · 0.95
getFileMethod · 0.95
putMethod · 0.80
valueOfMethod · 0.80
getNameMethod · 0.65

Tested by 15

checkPerformanceMethod · 0.76
setUpMethod · 0.76
testTooManyArgsMethod · 0.76
DirectMappingMethod · 0.76
testLoadFromClasspathMethod · 0.76
testLoadFromJarMethod · 0.76