Uses of Class
java.lang.ModuleLayer
Packages that useModuleLayer
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 ofModuleLayer injava.lang
Methods injava.lang that returnModuleLayerModifier and TypeMethodDescriptionstaticModuleLayer
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.staticModuleLayer
ModuleLayer.empty()
Returns theempty 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.Methods injava.lang that return types with arguments of typeModuleLayerModifier and TypeMethodDescriptionModuleLayer.parents()
Returns an unmodifiable list of this layer's parents, in search order.Method parameters injava.lang with type arguments of typeModuleLayerModifier and TypeMethodDescriptionstaticModuleLayer.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.staticModuleLayer.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.staticModuleLayer.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 ofModuleLayer injava.util
Methods injava.util with parameters of typeModuleLayerModifier 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.