java.lang.Object
org.jboss.modules.ResourceLoaderModuleFinder
- All Implemented Interfaces:
ModuleFinder
A module loader which loads modules which are stored inside the
modules
directory of a single JAR or JAR-like
root.-
Constructor Summary
ConstructorsConstructorDescriptionResourceLoaderModuleFinder
(ResourceLoader resourceLoader) Construct a new instance.ResourceLoaderModuleFinder
(ResourceLoader resourceLoader, String modulesDirectory) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionfindModule
(String name, ModuleLoader delegateLoader) Find a module specification for the given name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.modules.ModuleFinder
findModule
-
Constructor Details
-
ResourceLoaderModuleFinder
Construct a new instance. The given resource loader should support the nestedResourceLoader.createSubloader(String, String)
operation if<resource-root>
elements are to be supported inmodule.xml
files found within the loader.- Parameters:
resourceLoader
- the base resource loader to use (must not benull
)modulesDirectory
- the modules directory to use (must not benull
)
-
ResourceLoaderModuleFinder
Construct a new instance. The given resource loader should support the nestedResourceLoader.createSubloader(String, String)
operation if<resource-root>
elements are to be supported inmodule.xml
files found within the loader.- Parameters:
resourceLoader
- the base resource loader to use (must not benull
)
-
-
Method Details
-
findModule
Description copied from interface:ModuleFinder
Find a module specification for the given name. The default implementation delegates to the legacyModuleFinder.findModule(ModuleIdentifier, ModuleLoader)
method.- Specified by:
findModule
in interfaceModuleFinder
- Parameters:
name
- the module namedelegateLoader
- the module loader from which dependencies should be resolved- Returns:
- the module specification, or
null
if no specification is found for this identifier - Throws:
ModuleLoadException
-