Uses of Class
java.lang.ModuleLayer
Packages that useModuleLayer Package Description java.lang Provides classes that are fundamental to the design of the Java programming language.java.util 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 returnModuleLayer Modifier and Type Method Description staticModuleLayer
ModuleLayer. boot()
Returns the boot layer.ModuleLayer
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
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
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.ModuleLayer
Module. getLayer()
Returns the module layer that contains this module ornull
if this module is not in a module layer.ModuleLayer
ModuleLayer.Controller. layer()
Returns the layer that this object controls.Methods injava.lang that return types with arguments of typeModuleLayer Modifier and Type Method Description List<ModuleLayer>
ModuleLayer. parents()
Returns the list of this layer's parents unless this is theempty layer, which has no parents and so an empty list is returned.Method parameters injava.lang with type arguments of typeModuleLayer Modifier and Type Method Description staticModuleLayer.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 typeModuleLayer Modifier and Type Method Description static <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.