JVMWrapper Class Reference

JVM Wrapper. More...

#include <JVMWrapper.h>

List of all members.

Static Public Member Functions

static void initialize (JavaVM *jvm)
 Initializes JVMWrapper class.
static JNIEnv * getEnv ()
 Returns JNIEnv pointer.
static void exit (int status=-1)
 Exits JVM.
static void exitCritical (int status=-1)
 Displays error message and exits JVM.
static bool attachCurrentThread ()
 Attaches current thread.
static bool detachCurrentThread ()
 Dttaches current thread.


Detailed Description

JVM Wrapper.

Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Version:
0.2.0

Member Function Documentation

void JVMWrapper::initialize ( JavaVM *  jvm  )  [static]

Initializes JVMWrapper class.

Parameters:
jvm the JNI JavaVM pointer
Returns:
JNIEnv version

JNIEnv * JVMWrapper::getEnv (  )  [static]

Returns JNIEnv pointer.

Returns:
JNIEnv pointer

void JVMWrapper::exit ( int  status = -1  )  [static]

Exits JVM.

Parameters:
status the status code

void JVMWrapper::exitCritical ( int  status = -1  )  [static]

Displays error message and exits JVM.

Parameters:
status the status code

bool JVMWrapper::attachCurrentThread (  )  [static]

Attaches current thread.

Returns:
true if succeed

bool JVMWrapper::detachCurrentThread (  )  [static]

Dttaches current thread.

Returns:
true if succeed


Copyright © 2007 ETF and contributors. All Rights Reserved.