Initial alpha-level of sapi/servlet. See README for details.

This commit is contained in:
Sam Ruby 1999-11-29 15:36:25 +00:00
parent a76c133df1
commit fd9265362c
20 changed files with 1046 additions and 37 deletions

View file

@ -19,11 +19,21 @@
package net.php;
import java.lang.reflect.*;
import java.util.ResourceBundle;
import java.beans.*;
class reflect {
static { System.loadLibrary("php_java"); }
static { loadLibrary("reflect"); }
protected static void loadLibrary(String property) {
try {
ResourceBundle bundle = ResourceBundle.getBundle("net.php."+property);
System.loadLibrary(bundle.getString("library"));
} catch (Exception e) {
e.printStackTrace();
}
}
//
// Native methods
@ -34,6 +44,7 @@ class reflect {
private static native void setResultFromBoolean(long result, boolean value);
private static native void setResultFromObject(long result, Object value);
private static native void setException(long result, String value);
public static native void setEnv();
//
// Helper routines which encapsulate the native methods