shared
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends
Static Public Member Functions | List of all members
Library Class Reference

A class for setting up and tearing down the native library. More...

#include <Library.hpp>

Static Public Member Functions

static jint OnLoad (JavaVM *jvm, void *reserved)
 On library load. More...
 
static void OnUnload (JavaVM *jvm, void *reserved)
 On library unload. More...
 
static void registerService (JNIEnv *env, const char *specClassName, const char *implClassName)
 Registers a native service provider. More...
 
static void init (JNIEnv *env)
 Initializes the native library. More...
 
static void destroy (JNIEnv *env)
 Destroys the native library. More...
 

Detailed Description

A class for setting up and tearing down the native library.

Member Function Documentation

void Library::destroy ( JNIEnv *  env)
static

Destroys the native library.

Parameters
envthe JNI environment.
void Library::init ( JNIEnv *  env)
static

Initializes the native library.

Parameters
envthe JNI environment.
jint Library::OnLoad ( JavaVM *  jvm,
void *  reserved 
)
static

On library load.

Parameters
jvmthe pointer to the Java Virtual Machine.
reservedthe extra data.
Returns
the minimum JNI version number required to run the library code.
void Library::OnUnload ( JavaVM *  jvm,
void *  reserved 
)
static

On library unload.

Parameters
jvmthe pointer to the Java Virtual Machine.
reservedthe extra data.
void Library::registerService ( JNIEnv *  env,
const char *  specClassName,
const char *  implClassName 
)
static

Registers a native service provider.

Parameters
envthe JNI environment.
specClassNamethe specification class name.
implClassNamethe implementation class name.