de.intarsys.nativec.jna
Class JnaNativeLibrary

java.lang.Object
  extended by de.intarsys.nativec.jna.JnaNativeLibrary
All Implemented Interfaces:
INativeLibrary

public class JnaNativeLibrary
extends java.lang.Object
implements INativeLibrary


Constructor Summary
JnaNativeLibrary(JnaNativeInterface nativeInterface, java.lang.String name)
           
 
Method Summary
 INativeFunction getFunction(java.lang.String name)
          Lookup a INativeFunction from the library.
 INativeHandle getGlobal(java.lang.String symbolName)
          Lookup a global in the library.
protected  com.sun.jna.NativeLibrary getLibrary()
           
protected  JnaNativeInterface getNativeInterface()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JnaNativeLibrary

public JnaNativeLibrary(JnaNativeInterface nativeInterface,
                        java.lang.String name)
Method Detail

getFunction

public INativeFunction getFunction(java.lang.String name)
Description copied from interface: INativeLibrary
Lookup a INativeFunction from the library.

Specified by:
getFunction in interface INativeLibrary
Parameters:
name - The function name
Returns:
The INativeFunction

getGlobal

public INativeHandle getGlobal(java.lang.String symbolName)
Description copied from interface: INativeLibrary
Lookup a global in the library.

Specified by:
getGlobal in interface INativeLibrary
Parameters:
symbolName - The global name
Returns:
The INativeHandle to the global.

getLibrary

protected com.sun.jna.NativeLibrary getLibrary()

getNativeInterface

protected JnaNativeInterface getNativeInterface()