Uses of Class
java.lang.ModuleLayer
Packages that useModuleLayer
Package
Description
Provides classes that are fundamental to the design of the Javaprogramming language.
Contains the collections framework, some internationalization support classes,a service loader, properties, random number generation, string parsingand scanning classes, base64 encoding and decoding, a bit array, andseveral miscellaneous utility classes.
Uses ofModuleLayer injava.lang
Methods injava.lang that returnModuleLayerModifier and TypeMethodDescriptionstaticModuleLayerModuleLayer.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 themodules in the givenConfigurationto the Java virtual machine.ModuleLayer.defineModulesWithManyLoaders(Configuration cf,ClassLoader parentLoader) Creates a new module layer, with this layer as its parent, by defining themodules in the givenConfigurationto the Java virtual machine.ModuleLayer.defineModulesWithOneLoader(Configuration cf,ClassLoader parentLoader) Creates a new module layer, with this layer as its parent, by defining themodules in the givenConfigurationto the Java virtual machine.staticModuleLayerModuleLayer.empty()Returns theempty layer.Module.getLayer()Returns the module layer that contains this module ornullifthis 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 searchorder.Method parameters injava.lang with type arguments of typeModuleLayerModifier and TypeMethodDescriptionstaticModuleLayer.ControllerModuleLayer.defineModules(Configuration cf,List<ModuleLayer> parentLayers,Function<String,ClassLoader> clf) Creates a new module layer by defining the modules in the givenConfigurationto the Java virtual machine.staticModuleLayer.ControllerModuleLayer.defineModulesWithManyLoaders(Configuration cf,List<ModuleLayer> parentLayers,ClassLoader parentLoader) Creates a new module layer by defining the modules in the givenConfigurationto the Java virtual machine.staticModuleLayer.ControllerModuleLayer.defineModulesWithOneLoader(Configuration cf,List<ModuleLayer> parentLayers,ClassLoader parentLoader) Creates a new module layer by defining the modules in the givenConfigurationto 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 serviceproviders from modules in the given module layer and its ancestors.