hotspot/src/share/vm/prims/jvm.h
changeset 43466 add500644443
parent 42307 cefc81dc1d52
child 45628 ea212c4584d7
equal deleted inserted replaced
43465:033b9f74b930 43466:add500644443
   410 
   410 
   411 /*
   411 /*
   412  * Module support funcions
   412  * Module support funcions
   413  */
   413  */
   414 
   414 
       
   415 /*
       
   416  * Define a module with the specified packages and bind the module to the
       
   417  * given class loader.
       
   418  *  module:       module to define
       
   419  *  is_open:      specifies if module is open (currently ignored)
       
   420  *  version:      the module version
       
   421  *  location:     the module location
       
   422  *  packages:     list of packages in the module
       
   423  *  num_packages: number of packages in the module
       
   424  */
   415 JNIEXPORT void JNICALL
   425 JNIEXPORT void JNICALL
   416 JVM_DefineModule(JNIEnv *env, jobject module, jboolean is_open, jstring version,
   426 JVM_DefineModule(JNIEnv *env, jobject module, jboolean is_open, jstring version,
   417                  jstring location, jobjectArray packages);
   427                  jstring location, const char* const* packages, jsize num_packages);
   418 
   428 
       
   429 /*
       
   430  * Set the boot loader's unnamed module.
       
   431  *  module: boot loader's unnamed module
       
   432  */
   419 JNIEXPORT void JNICALL
   433 JNIEXPORT void JNICALL
   420 JVM_SetBootLoaderUnnamedModule(JNIEnv *env, jobject module);
   434 JVM_SetBootLoaderUnnamedModule(JNIEnv *env, jobject module);
   421 
   435 
   422 JNIEXPORT void JNICALL
   436 /*
   423 JVM_AddModuleExports(JNIEnv *env, jobject from_module, jstring package, jobject to_module);
   437  * Do a qualified export of a package.
   424 
   438  *  from_module: module containing the package to export
   425 JNIEXPORT void JNICALL
   439  *  package:     name of the package to export
   426 JVM_AddModuleExportsToAllUnnamed(JNIEnv *env, jobject from_module, jstring package);
   440  *  to_module:   module to export the package to
   427 
   441  */
   428 JNIEXPORT void JNICALL
   442 JNIEXPORT void JNICALL
   429 JVM_AddModuleExportsToAll(JNIEnv *env, jobject from_module, jstring package);
   443 JVM_AddModuleExports(JNIEnv *env, jobject from_module, const char* package, jobject to_module);
   430 
   444 
       
   445 /*
       
   446  * Do an export of a package to all unnamed modules.
       
   447  *  from_module: module containing the package to export
       
   448  *  package:     name of the package to export to all unnamed modules
       
   449  */
       
   450 JNIEXPORT void JNICALL
       
   451 JVM_AddModuleExportsToAllUnnamed(JNIEnv *env, jobject from_module, const char* package);
       
   452 
       
   453 /*
       
   454  * Do an unqualified export of a package.
       
   455  *  from_module: module containing the package to export
       
   456  *  package:     name of the package to export
       
   457  */
       
   458 JNIEXPORT void JNICALL
       
   459 JVM_AddModuleExportsToAll(JNIEnv *env, jobject from_module, const char* package);
       
   460 
       
   461 /*
       
   462  * Add a module to the list of modules that a given module can read.
       
   463  *  from_module:   module requesting read access
       
   464  *  source_module: module that from_module wants to read
       
   465  */
   431 JNIEXPORT void JNICALL
   466 JNIEXPORT void JNICALL
   432 JVM_AddReadsModule(JNIEnv *env, jobject from_module, jobject source_module);
   467 JVM_AddReadsModule(JNIEnv *env, jobject from_module, jobject source_module);
   433 
   468 
   434 JNIEXPORT void JNICALL
   469 /*
   435 JVM_AddModulePackage(JNIEnv* env,  jobject module, jstring package);
   470  * Add a package to a module.
   436 
   471  *  module:  module that will contain the package
   437 JNIEXPORT jobject JNICALL
   472  *  package: package to add to the module
   438 JVM_GetModuleByPackageName(JNIEnv* env, jobject loader, jstring package);
   473  */
       
   474 JNIEXPORT void JNICALL
       
   475 JVM_AddModulePackage(JNIEnv* env,  jobject module, const char* package);
   439 
   476 
   440 /*
   477 /*
   441  * Reflection support functions
   478  * Reflection support functions
   442  */
   479  */
   443 
   480