Uses of Class java.lang.ModuleLayer.Controller (Java SE 22 & JDK 22)
Description: use: module: java.base, package: java.lang, class: ModuleLayer, class: Controller

# Uses of Class
java.lang.ModuleLayer.Controller

Packages that use ModuleLayer.Controller
Package
Description
java.lang
Provides classes that are fundamental to the design of the Java programming language.

- ## Uses of ModuleLayer.Controller in java.lang

  Methods in java.lang that return ModuleLayer.Controller
  Modifier and Type
  Method
  Description
  `ModuleLayer.Controller`
  ModuleLayer.Controller.`addExports(Module source, String pn, Module target)`
  Updates module `source` in the layer to export a package to module `target`.
  `ModuleLayer.Controller`
  ModuleLayer.Controller.`addOpens(Module source, String pn, Module target)`
  Updates module `source` in the layer to open a package to module `target`.
  `ModuleLayer.Controller`
  ModuleLayer.Controller.`addReads(Module source, Module target)`
  Updates module `source` in the layer to read module `target`.
  `static ModuleLayer.Controller`
  ModuleLayer.`defineModules(Configuration cf, List<ModuleLayer> parentLayers, Function<String,ClassLoader> clf)`
  Creates a new module layer by defining the modules in the given `Configuration` to the Java virtual machine.
  `static ModuleLayer.Controller`
  ModuleLayer.`defineModulesWithManyLoaders(Configuration cf, List<ModuleLayer> parentLayers, ClassLoader parentLoader)`
  Creates a new module layer by defining the modules in the given `Configuration` to the Java virtual machine.
  `static ModuleLayer.Controller`
  ModuleLayer.`defineModulesWithOneLoader(Configuration cf, List<ModuleLayer> parentLayers, ClassLoader parentLoader)`
  Creates a new module layer by defining the modules in the given `Configuration` to the Java virtual machine.
  `ModuleLayer.Controller`
  ModuleLayer.Controller.`enableNativeAccess(Module target)`
  Restricted.
  Enables native access for a module in the layer if the caller's module has native access.