|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.ext.ffi.Factory
public abstract class Factory
A factory that can create a FFI Provider
Nested Class Summary | |
---|---|
static class |
Factory.Service
|
Constructor Summary | |
---|---|
protected |
Factory()
|
Method Summary | ||
---|---|---|
static Factory |
getInstance()
Gets an instance of FFIProvider |
|
abstract Platform |
getPlatform()
Gets the platform info for this FFIProvider. |
|
void |
init(Ruby runtime,
RubyModule ffi)
Registers FFI ruby classes/modules |
|
abstract
|
loadLibrary(java.lang.String libraryName,
java.lang.Class<T> libraryClass)
Loads a native library. |
|
abstract java.nio.channels.ByteChannel |
newByteChannel(int fd)
Wraps a java.nio.ByteChannel around a native file descriptor |
|
protected abstract FFIProvider |
newProvider(Ruby runtime)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Factory()
Method Detail |
---|
public static final Factory getInstance()
public void init(Ruby runtime, RubyModule ffi)
module
- the module to register the classes underprotected abstract FFIProvider newProvider(Ruby runtime)
public abstract <T> T loadLibrary(java.lang.String libraryName, java.lang.Class<T> libraryClass)
T
- libraryName
- The name of the library to load.libraryClass
- The interface class to map to the library functions.
public abstract Platform getPlatform()
public abstract java.nio.channels.ByteChannel newByteChannel(int fd)
java.nio.ByteChannel
around a native file descriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |