# Uses of Class
org.jboss.modules.ModuleLoader

Packages that use ModuleLoader
Package
Description
org.jboss.modules
The primary JBoss Modules API.
org.jboss.modules.log
The logging interface for JBoss Modules.
org.jboss.modules.security
org.jboss.modules.xml

## Uses of ModuleLoader in org.jboss.modules

Subclasses of ModuleLoader in org.jboss.modules
Modifier and Type
Class
Description
`final class`
`ClassifyingModuleLoader`
A module loader which selects a delegate module loader based upon the prefix of the module name.
`class`
`DelegatingModuleLoader`
A module loader which searches its finders first, and then delegates to another loader if the module is not found.
`final class`
`LocalModuleLoader`
A local filesystem-backed module loader.
Methods in org.jboss.modules that return ModuleLoader
Modifier and Type
Method
Description
`static ModuleLoader`
ModuleLoader.`forClass(Class<?> clazz)`
Get the module loader for a class.
`static ModuleLoader`
ModuleLoader.`forClassLoader(ClassLoader classLoader)`
Get the module loader for a class loader.
`static ModuleLoader`
Module.`getBootModuleLoader()`
Gets the boot module loader.
`static ModuleLoader`
Module.`getCallerModuleLoader()`
Gets the current module loader.
`static ModuleLoader`
Module.`getContextModuleLoader()`
Get the current thread's context module loader.
`ModuleLoader`
Module.`getModuleLoader()`
Get the module loader which created this module.
`ModuleLoader`
ModuleDependencySpec.`getModuleLoader()`
Get the module loader of this dependency, or `null` if the defined module's loader is to be used.
`ModuleLoader`
ModuleDependencySpecBuilder.`getModuleLoader()`
Get the module loader of the dependency.
`static ModuleLoader`
Module.`getSystemModuleLoader()`
Get the system module loader.
Methods in org.jboss.modules with parameters of type ModuleLoader
Modifier and Type
Method
Description
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, String name, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, PathFilter resourceImportFilter, PathFilter resourceExportFilter, ClassFilter classImportFilter, ClassFilter classExportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter importFilter, PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, String name, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(PathFilter exportFilter, ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(ModuleLoader moduleLoader, String name, boolean export)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(ModuleLoader moduleLoader, String name, boolean export, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`static DependencySpec`
DependencySpec.`createModuleDependencySpec(ModuleLoader moduleLoader, ModuleIdentifier identifier, boolean export, boolean optional)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleDependencySpecBuilder` instead.
`ModuleSpec`
FileSystemClassPathModuleFinder.`findModule(String name, ModuleLoader delegateLoader)`
`ModuleSpec`
JarModuleFinder.`findModule(String name, ModuleLoader delegateLoader)`
Deprecated.
`ModuleSpec`
JDKModuleFinder.`findModule(String name, ModuleLoader delegateLoader)`
`ModuleSpec`
LocalModuleFinder.`findModule(String name, ModuleLoader delegateLoader)`
`default ModuleSpec`
ModuleFinder.`findModule(String name, ModuleLoader delegateLoader)`
Find a module specification for the given name.
`default ModuleSpec`
ModuleFinder.`findModule(ModuleIdentifier moduleIdentifier, ModuleLoader delegateLoader)`
Deprecated, for removal: This API element is subject to removal in a future version.
Implement `ModuleFinder.findModule(String, ModuleLoader)` instead.
`ModuleSpec`
ResourceLoaderModuleFinder.`findModule(String name, ModuleLoader delegateLoader)`
`default Iterator<String>`
IterableModuleFinder.`iterateModules(String baseName, boolean recursive, ModuleLoader delegateLoader)`
`Iterator<String>`
JDKModuleFinder.`iterateModules(String baseName, boolean recursive, ModuleLoader delegate)`
`Iterator<String>`
LocalModuleFinder.`iterateModules(String baseName, boolean recursive, ModuleLoader delegateLoader)`
`static ModuleSpec`
LocalModuleFinder.`parseModuleXmlFile(String name, ModuleLoader delegateLoader, File... roots)`
Parse a `module.xml` file and return the corresponding module specification.
`static ModuleSpec`
LocalModuleFinder.`parseModuleXmlFile(ModuleIdentifier identifier, ModuleLoader delegateLoader, File... roots)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `LocalModuleFinder.parseModuleXmlFile(String, ModuleLoader, File...)` instead.
`protected static Module`
ModuleLoader.`preloadModule(String name, ModuleLoader moduleLoader)`
Utility method to delegate to another module loader, accessible from subclasses.
`protected static Module`
ModuleLoader.`preloadModule(ModuleIdentifier identifier, ModuleLoader moduleLoader)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `preloadModule(String, ModuleLoader)` instead.
`ModuleDependencySpecBuilder`
ModuleDependencySpecBuilder.`setModuleLoader(ModuleLoader moduleLoader)`
Set the module loader of the dependency.
Method parameters in org.jboss.modules with type arguments of type ModuleLoader
Modifier and Type
Method
Description
`void`
ClassifyingModuleLoader.`setDelegates(Map<String,ModuleLoader> delegates)`
Change the delegates map.
Constructors in org.jboss.modules with parameters of type ModuleLoader
Modifier
Constructor
Description
``
`ClassifyingModuleLoader(String name, Map<String,ModuleLoader> delegates, ModuleLoader defaultLoader)`
Construct a new instance.
``
`DelegatingModuleLoader(ModuleLoader delegate, ModuleFinder finder)`
Construct a new instance.
``
`DelegatingModuleLoader(ModuleLoader delegate, ModuleFinder[] finders)`
Construct a new instance.
``
`FileSystemClassPathModuleFinder(ModuleLoader baseModuleLoader)`
Construct a new instance.
``
`FileSystemClassPathModuleFinder(ModuleLoader baseModuleLoader, Supplier<ModuleLoader> extensionModuleLoaderSupplier)`
Construct a new instance.
Constructor parameters in org.jboss.modules with type arguments of type ModuleLoader
Modifier
Constructor
Description
``
`ClassifyingModuleLoader(String name, Map<String,ModuleLoader> delegates, ModuleLoader defaultLoader)`
Construct a new instance.
``
`FileSystemClassPathModuleFinder(Supplier<ModuleLoader> baseModuleLoaderSupplier, Supplier<ModuleLoader> extensionModuleLoaderSupplier)`
Construct a new instance.
``
`FileSystemClassPathModuleFinder(ModuleLoader baseModuleLoader, Supplier<ModuleLoader> extensionModuleLoaderSupplier)`
Construct a new instance.

## Uses of ModuleLoader in org.jboss.modules.log

Methods in org.jboss.modules.log with parameters of type ModuleLoader
Modifier and Type
Method
Description
`void`
JDKModuleLogger.`moduleDefined(String name, ModuleLoader moduleLoader)`
`default void`
ModuleLogger.`moduleDefined(String name, ModuleLoader moduleLoader)`
`default void`
ModuleLogger.`moduleDefined(ModuleIdentifier identifier, ModuleLoader moduleLoader)`
Deprecated, for removal: This API element is subject to removal in a future version.
`void`
NoopModuleLogger.`moduleDefined(String name, ModuleLoader moduleLoader)`
`void`
StreamModuleLogger.`moduleDefined(String name, ModuleLoader moduleLoader)`

## Uses of ModuleLoader in org.jboss.modules.security

Constructors in org.jboss.modules.security with parameters of type ModuleLoader
Modifier
Constructor
Description
``
`ModularPermissionFactory(ModuleLoader moduleLoader, String moduleName, String className, String targetName, String permissionActions)`
Construct a new instance.
``
`ModularPermissionFactory(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, String className, String targetName, String permissionActions)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModularPermissionFactory(ModuleLoader, String, String, String, String)` instead.

## Uses of ModuleLoader in org.jboss.modules.xml

Methods in org.jboss.modules.xml with parameters of type ModuleLoader
Modifier and Type
Method
Description
`static ModuleSpec`
ModuleXmlParser.`parseModuleXml(ModuleLoader moduleLoader, String moduleName, File root, File moduleInfoFile)`
Parse a `module.xml` file.
`static ModuleSpec`
ModuleXmlParser.`parseModuleXml(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, File root, File moduleInfoFile)`
Deprecated.
Use `ModuleXmlParser.parseModuleXml(ModuleLoader, String, File, File)` instead.
`static ModuleSpec`
ModuleXmlParser.`parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, String rootPath, InputStream source, String moduleInfoFile, ModuleLoader moduleLoader, String moduleName)`
Parse a `module.xml` file.
`static ModuleSpec`
ModuleXmlParser.`parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, String rootPath, InputStream source, String moduleInfoFile, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier)`
Deprecated.
Use `ModuleXmlParser.parseModuleXml(ResourceRootFactory, String, InputStream, String, ModuleLoader, String)` instead.
`static ModuleSpec`
ModuleXmlParser.`parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, MavenResolver mavenResolver, String rootPath, InputStream source, String moduleInfoFile, ModuleLoader moduleLoader, String moduleName)`
Parse a `module.xml` file.
`static ModuleSpec`
ModuleXmlParser.`parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, MavenResolver mavenResolver, String rootPath, InputStream source, String moduleInfoFile, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier)`
Deprecated.
Use `ModuleXmlParser.parseModuleXml(ResourceRootFactory, MavenResolver, String, InputStream, String, ModuleLoader, String)` instead.
`static ModuleSpec`
ModuleXmlParser.`parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, ModuleLoader moduleLoader, String moduleName, File root, File moduleInfoFile)`
Parse a `module.xml` file.
`static FactoryPermissionCollection`
PermissionsXmlParser.`parsePermissionsXml(InputStream inputStream, ModuleLoader moduleLoader, String moduleName)`
Parse the `permissions.xml` stream content.
`static FactoryPermissionCollection`
PermissionsXmlParser.`parsePermissionsXml(XmlPullParser reader, ModuleLoader moduleLoader, String moduleName)`
Parse the `permissions.xml` content.