|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oms3.util.Libraries
public class Libraries
Simplifies runtime binding of dynamic shared libraries to Java Interfaces.
Method Summary | ||
---|---|---|
static
|
bind(java.lang.Class<T> intf)
Maps a DLL to an interface using the @DLL annotation. |
|
static
|
bind(java.lang.String name,
java.lang.Class<T> intf)
Bind the Library 'name' to the interface 'intf', No annotation needed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends com.sun.jna.Library> T bind(java.lang.Class<T> intf)
T
- The interface typeintf
- The interface class
DLL
public static <T extends com.sun.jna.Library> T bind(java.lang.String name, java.lang.Class<T> intf)
T
- name
- the library name, if not provided the Interface
must be annotated with '@DLL'intf
- the interface
|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |