This class provides methods that allow Java to interface with Qore code.
More...
|
static Object | newInstance (Constructor<?> c, Object... args) throws Throwable |
| creates an instance of the given class
|
|
static Object | invokeMethod (Method m, Object obj, Object... args) throws Throwable |
| invokes the given method on the given object and returns the return value
|
|
static Object | invokeMethodNonvirtual (Method m, Object obj, Object... args) throws Throwable |
| invokes the given method on the given object and returns the return value
|
|
static Object | getField (Field f, Object obj) throws Throwable |
| invokes the given method on the given object and returns the return value
|
|
static MethodHandles.Lookup | lookup () |
| returns a lookup object for the program's context
|
|
static< S > ServiceLoader< S > | loadServiceLoader (Class< S > c, ClassLoader cl) |
| sets the Java caller context and runs ServiceLoader.load()
|
|
static Connection | getConnection (String url, Properties props) throws SQLException |
| sets the Java caller context and runs DriverManager.getConnection()
|
|
This class provides methods that allow Java to interface with Qore code.
These Java methods set the correct ClassLoader context in the JVM; it's not otherwise possible to set programmatically.
Any method that requires the ClassLoader context to be set should appear here.
The documentation for this class was generated from the following file:
- /tmp/module-jni/src/java/org/qore/jni/QoreJavaDynamicApi.java