Uses of Class
java.lang.Module
Packages that useModule
Package
Description
Provides classes that are fundamental to the design of the Javaprogramming language.
Provides services that allow Java programming language agents to instrumentprograms running on the Java Virtual Machine (JVM).
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 ofModule injava.lang
Modifier and TypeMethodDescriptionModule.addExports(String pn,Module other) If the caller's module is this module then update this module to exportthe given package to the given module.If this module hasopened a package to at least the callermodule then update this module to open the package to the given module.If the caller's module is this module then update this module to readthe given module.If the caller's module is this module then update this module to add aservice dependence on the given service type.Class.getModule()Returns the module that this class or interface is a member of.finalModuleClassLoader.getUnnamedModule()Returns the unnamedModulefor this class loader.Modifier and TypeMethodDescriptionModuleLayer.findModule(String name) Returns the module with the given name in this layer, or if not in thislayer, theparent layers.ModuleLayer.modules()Returns an unmodifiable set of the modules in this layer.Modifier and TypeMethodDescriptionModule.addExports(String pn,Module other) If the caller's module is this module then update this module to exportthe given package to the given module.ModuleLayer.Controller.addExports(Module source,String pn,Module target) Updates modulesourcein the layer to export a package tomoduletarget.If this module hasopened a package to at least the callermodule then update this module to open the package to the given module.Updates modulesourcein the layer to open a package tomoduletarget.If the caller's module is this module then update this module to readthe given module.Updates modulesourcein the layer to read moduletarget.booleanIndicates if this module reads the given module.ModuleLayer.Controller.enableNativeAccess(Module target) Restricted.Enables native access for a module in the layer if the caller's modulehas native access.staticClass<?> Returns theClasswith the givenbinary name in the given module.System.LoggerFinder.getLocalizedLogger(String name,ResourceBundle bundle,Module module) Returns a localizable instance ofLoggerfor the givenmodule.abstractSystem.LoggerReturns an instance ofLoggerfor the givenmodule.booleanModule.isExported(String pn,Module other) Returnstrueif this module exports the given package to atleast the given module.booleanReturnstrueif this module hasopened a package to atleast the given module.Uses ofModule injava.lang.instrument
Methods injava.lang.instrument with parameters of typeModuleModifier and TypeMethodDescriptionbooleanInstrumentation.isModifiableModule(Module module) Tests whether a module can be modified withredefineModule.voidInstrumentation.redefineModule(Module module,Set<Module> extraReads,Map<String,Set<Module>> extraExports,Map<String,Set<Module>> extraOpens,Set<Class<?>> extraUses,Map<Class<?>,List<Class<?>>> extraProvides) Redefine a module to expand the set of modules that it reads, the set ofpackages that it exports or opens, or the services that it uses orprovides.default byte[]ClassFileTransformer.transform(Module module,ClassLoader loader,String className,Class<?> classBeingRedefined,ProtectionDomain protectionDomain, byte[] classfileBuffer) Transforms the given class file and returns a new replacement class file.Method parameters injava.lang.instrument with type arguments of typeModuleModifier and TypeMethodDescriptionvoidInstrumentation.redefineModule(Module module,Set<Module> extraReads,Map<String,Set<Module>> extraExports,Map<String,Set<Module>> extraOpens,Set<Class<?>> extraUses,Map<Class<?>,List<Class<?>>> extraProvides) Redefine a module to expand the set of modules that it reads, the set ofpackages that it exports or opens, or the services that it uses orprovides.voidInstrumentation.redefineModule(Module module,Set<Module> extraReads,Map<String,Set<Module>> extraExports,Map<String,Set<Module>> extraOpens,Set<Class<?>> extraUses,Map<Class<?>,List<Class<?>>> extraProvides) Redefine a module to expand the set of modules that it reads, the set ofpackages that it exports or opens, or the services that it uses orprovides.Uses ofModule injava.util
Modifier and TypeMethodDescriptionstaticResourceBundleGets a resource bundle using the specified base name and the default localeon behalf of the specified module.staticResourceBundleGets a resource bundle using the specified base name and localeon behalf of the specified module.