Uses of Class
java.lang.ModuleLayer
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
-
Uses of ModuleLayer in java.lang
Modifier and TypeMethodDescriptionstatic ModuleLayer
ModuleLayer.boot()
Returns the boot layer.ModuleLayer.defineModules
(Configuration cf, Function<String, ClassLoader> clf) Creates a new module layer, with this layer as its parent, by defining the modules in the givenConfiguration
to the Java virtual machine.ModuleLayer.defineModulesWithManyLoaders
(Configuration cf, ClassLoader parentLoader) Creates a new module layer, with this layer as its parent, by defining the modules in the givenConfiguration
to the Java virtual machine.ModuleLayer.defineModulesWithOneLoader
(Configuration cf, ClassLoader parentLoader) Creates a new module layer, with this layer as its parent, by defining the modules in the givenConfiguration
to the Java virtual machine.static ModuleLayer
ModuleLayer.empty()
Returns the empty layer.Module.getLayer()
Returns the module layer that contains this module ornull
if this module is not in a module layer.ModuleLayer.Controller.layer()
Returns the layer that this object controls.Modifier and TypeMethodDescriptionModuleLayer.parents()
Returns an unmodifiable list of this layer's parents, in search order.Modifier and TypeMethodDescriptionstatic ModuleLayer.Controller
ModuleLayer.defineModules
(Configuration cf, List<ModuleLayer> parentLayers, Function<String, ClassLoader> clf) Creates a new module layer by defining the modules in the givenConfiguration
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 givenConfiguration
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 givenConfiguration
to the Java virtual machine. -
Uses of ModuleLayer in java.util
Modifier and TypeMethodDescriptionstatic <S> ServiceLoader
<S> ServiceLoader.load
(ModuleLayer layer, Class<S> service) Creates a new service loader for the given service type to load service providers from modules in the given module layer and its ancestors.