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 staticModuleLayerModuleLayer. boot()Returns the boot layer.ModuleLayerModuleLayer. defineModules(Configuration cf,Function<String,ClassLoader> clf)Creates a new module layer, with this layer as its parent, by defining the modules in the givenConfigurationto the Java virtual machine.ModuleLayerModuleLayer. defineModulesWithManyLoaders(Configuration cf,ClassLoader parentLoader)Creates a new module layer, with this layer as its parent, by defining the modules in the givenConfigurationto the Java virtual machine.ModuleLayerModuleLayer. defineModulesWithOneLoader(Configuration cf,ClassLoader parentLoader)Creates a new module layer, with this layer as its parent, by defining the modules in the givenConfigurationto the Java virtual machine.staticModuleLayerModuleLayer. empty()Returns theempty layer.ModuleLayerModule. getLayer()Returns the module layer that contains this module ornullif this module is not in a module layer.ModuleLayerModuleLayer.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.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 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.