类的用途
java.lang.module.Configuration
使用 Configuration 的包
-
Configuration 在 java.lang 中的用法
java.lang 中返回 Configuration 的方法java.lang 中的方法,参数类型为 Configuration修饰符和类型方法描述ModuleLayer.defineModules(Configuration cf, Function<String, ClassLoader> clf) 通过将给定Configuration中的模块定义到 Java 虚拟机,创建一个新的模块层,并将该层作为其父层。static ModuleLayer.ControllerModuleLayer.defineModules(Configuration cf, List<ModuleLayer> parentLayers, Function<String, ClassLoader> clf) 通过将给定Configuration中的模块定义到 Java 虚拟机来创建一个新的模块层。ModuleLayer.defineModulesWithManyLoaders(Configuration cf, ClassLoader parentLoader) 通过将给定Configuration中的模块定义到 Java 虚拟机,创建一个新的模块层,并将该层作为其父层。static ModuleLayer.ControllerModuleLayer.defineModulesWithManyLoaders(Configuration cf, List<ModuleLayer> parentLayers, ClassLoader parentLoader) 通过将给定Configuration中的模块定义到 Java 虚拟机来创建一个新的模块层。ModuleLayer.defineModulesWithOneLoader(Configuration cf, ClassLoader parentLoader) 通过将给定Configuration中的模块定义到 Java 虚拟机,创建一个新的模块层,并将该层作为其父层。static ModuleLayer.ControllerModuleLayer.defineModulesWithOneLoader(Configuration cf, List<ModuleLayer> parentLayers, ClassLoader parentLoader) 通过将给定Configuration中的模块定义到 Java 虚拟机来创建一个新的模块层。 -
Configuration 在 java.lang.module 中的用法
java.lang.module 中返回 Configuration 的方法修饰符和类型方法描述ResolvedModule.configuration()返回此已解析模块所在的配置。static ConfigurationConfiguration.empty()返回 empty 配置。Configuration.resolve(ModuleFinder before, ModuleFinder after, Collection<String> roots) 解析根模块的集合,以此配置作为其父级,以创建新配置。static ConfigurationConfiguration.resolve(ModuleFinder before, List<Configuration> parents, ModuleFinder after, Collection<String> roots) 解析一组根模块以创建配置。Configuration.resolveAndBind(ModuleFinder before, ModuleFinder after, Collection<String> roots) 使用服务绑定解析根模块的集合,并将此配置作为其父级,以创建新配置。static ConfigurationConfiguration.resolveAndBind(ModuleFinder before, List<Configuration> parents, ModuleFinder after, Collection<String> roots) 使用服务绑定解析根模块的集合以创建配置。返回类型中包含 Configuration 类型参数的 java.lang.module 中的方法java.lang.module 中的方法参数,类型参数为 Configuration修饰符和类型方法描述static ConfigurationConfiguration.resolve(ModuleFinder before, List<Configuration> parents, ModuleFinder after, Collection<String> roots) 解析一组根模块以创建配置。static ConfigurationConfiguration.resolveAndBind(ModuleFinder before, List<Configuration> parents, ModuleFinder after, Collection<String> roots) 使用服务绑定解析根模块的集合以创建配置。