Lines Matching refs:env

23 nxt_java_initURLClassLoader(JNIEnv *env)  in nxt_java_initURLClassLoader()  argument
27 cls = (*env)->FindClass(env, "java/net/URLClassLoader"); in nxt_java_initURLClassLoader()
33 nxt_java_URLClassLoader_class = (*env)->NewGlobalRef(env, cls); in nxt_java_initURLClassLoader()
34 (*env)->DeleteLocalRef(env, cls); in nxt_java_initURLClassLoader()
37 nxt_java_URLClassLoader_ctor = (*env)->GetMethodID(env, cls, in nxt_java_initURLClassLoader()
44 nxt_java_URLClassLoader_parent_ctor = (*env)->GetMethodID(env, cls, in nxt_java_initURLClassLoader()
51 nxt_java_URLClassLoader_loadClass = (*env)->GetMethodID(env, cls, in nxt_java_initURLClassLoader()
58 nxt_java_URLClassLoader_addURL = (*env)->GetMethodID(env, cls, in nxt_java_initURLClassLoader()
65 cls = (*env)->FindClass(env, "java/net/URL"); in nxt_java_initURLClassLoader()
71 nxt_java_URL_class = (*env)->NewGlobalRef(env, cls); in nxt_java_initURLClassLoader()
72 (*env)->DeleteLocalRef(env, cls); in nxt_java_initURLClassLoader()
75 nxt_java_URL_ctor = (*env)->GetMethodID(env, cls, in nxt_java_initURLClassLoader()
86 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initURLClassLoader()
92 nxt_java_newURLClassLoader(JNIEnv *env, int url_count, char **urls) in nxt_java_newURLClassLoader() argument
96 jurls = nxt_java_newURLs(env, url_count, urls); in nxt_java_newURLClassLoader()
101 return (*env)->NewObject(env, nxt_java_URLClassLoader_class, in nxt_java_newURLClassLoader()
107 nxt_java_newURLClassLoader_parent(JNIEnv *env, int url_count, char **urls, in nxt_java_newURLClassLoader_parent() argument
112 jurls = nxt_java_newURLs(env, url_count, urls); in nxt_java_newURLClassLoader_parent()
117 return (*env)->NewObject(env, nxt_java_URLClassLoader_class, in nxt_java_newURLClassLoader_parent()
124 nxt_java_newURLs(JNIEnv *env, int url_count, char **urls) in nxt_java_newURLs() argument
131 jurls = (*env)->NewObjectArray(env, url_count, nxt_java_URL_class, NULL); in nxt_java_newURLs()
137 surl = (*env)->NewStringUTF(env, urls[i]); in nxt_java_newURLs()
142 jurl = (*env)->NewObject(env, nxt_java_URL_class, nxt_java_URL_ctor, in nxt_java_newURLs()
148 (*env)->SetObjectArrayElement(env, jurls, i, jurl); in nxt_java_newURLs()
156 nxt_java_loadClass(JNIEnv *env, jobject cl, const char *name) in nxt_java_loadClass() argument
160 jname = (*env)->NewStringUTF(env, name); in nxt_java_loadClass()
165 return (*env)->CallObjectMethod(env, cl, nxt_java_URLClassLoader_loadClass, in nxt_java_loadClass()
171 nxt_java_addURL(JNIEnv *env, jobject cl, const char *url) in nxt_java_addURL() argument
176 surl = (*env)->NewStringUTF(env, url); in nxt_java_addURL()
181 jurl = (*env)->NewObject(env, nxt_java_URL_class, nxt_java_URL_ctor, surl); in nxt_java_addURL()
186 (*env)->CallVoidMethod(env, cl, nxt_java_URLClassLoader_addURL, jurl); in nxt_java_addURL()