Package org.jboss.modules
Class ResourceLoaderModuleFinder
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, waitMethods 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.xmlfiles 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.xmlfiles found within the loader.- Parameters:
resourceLoader- the base resource loader to use (must not benull)
-
-
Method Details
-
findModule
Description copied from interface:ModuleFinderFind a module specification for the given name. The default implementation delegates to the legacyModuleFinder.findModule(ModuleIdentifier, ModuleLoader)method for now, however this behavior will be discontinued in the future.- Specified by:
findModulein interfaceModuleFinder- Parameters:
name- the module namedelegateLoader- the module loader from which dependencies should be resolved- Returns:
- the module specification, or
nullif no specification is found for this identifier - Throws:
ModuleLoadException
-