Top Description Inners Fields Constructors Methods
org.jboss.modules

public final Class ResourceLoaderModuleFinder

extends Object
implements ModuleFinder
Class Inheritance
All Implemented Interfaces
org.jboss.modules.ModuleFinder
Static Imports
org.jboss.modules.Utils.MODULES_DIR, .Utils.MODULE_FILE

A module loader which loads modules which are stored inside the modules directory of a single JAR or JAR-like root.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final ResourceLoaderModuleFinder.NestedResourceRootFactory
private final String
private final ResourceLoader

Constructor Summary

AccessConstructor and Description
public
ResourceLoaderModuleFinder(final ResourceLoader
the base resource loader to use (must not be null)
resourceLoader
,
final String
the modules directory to use (must not be null)
modulesDirectory
)

Construct a new instance.

public
ResourceLoaderModuleFinder(final ResourceLoader
the base resource loader to use (must not be null)
resourceLoader
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public ModuleSpec
findModule(final String
the module name
name
,
final ModuleLoader
the module loader from which dependencies should be resolved
delegateLoader
)

Overrides default org.jboss.modules.ModuleFinder.findModule.

Find a module specification for the given name.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoryback to summary
private final ResourceLoaderModuleFinder.NestedResourceRootFactory factory
modulesDirectoryback to summary
private final String modulesDirectory
resourceLoaderback to summary
private final ResourceLoader resourceLoader

Constructor Detail

ResourceLoaderModuleFinderback to summary
public ResourceLoaderModuleFinder(final ResourceLoader resourceLoader, final String modulesDirectory)

Construct a new instance. The given resource loader should support the nested ResourceLoader#createSubloader(String, String) operation if <resource-root> elements are to be supported in module.xml files found within the loader.

Parameters
resourceLoader:ResourceLoader

the base resource loader to use (must not be null)

modulesDirectory:String

the modules directory to use (must not be null)

ResourceLoaderModuleFinderback to summary
public ResourceLoaderModuleFinder(final ResourceLoader resourceLoader)

Construct a new instance. The given resource loader should support the nested ResourceLoader#createSubloader(String, String) operation if <resource-root> elements are to be supported in module.xml files found within the loader.

Parameters
resourceLoader:ResourceLoader

the base resource loader to use (must not be null)

Method Detail

findModuleback to summary
public ModuleSpec findModule(final String name, final ModuleLoader delegateLoader) throws ModuleLoadException

Overrides default org.jboss.modules.ModuleFinder.findModule.

Doc from org.jboss.modules.ModuleFinder.findModule.

Find a module specification for the given name. The default implementation delegates to the legacy findModule(ModuleIdentifier, ModuleLoader) method.

Parameters
name:String

the module name

delegateLoader:ModuleLoader

the module loader from which dependencies should be resolved

Returns:ModuleSpec

the module specification, or null if no specification is found for this identifier

org.jboss.modules back to summary

pack-priv Class ResourceLoaderModuleFinder.NestedResourceRootFactory

extends Object
implements ResourceRootFactory
Class Inheritance
  • java.lang.Object
  • org.jboss.modules.ResourceLoaderModuleFinder.NestedResourceRootFactory
All Implemented Interfaces
org.jboss.modules.xml.ModuleXmlParser.ResourceRootFactory

Field Summary

Modifier and TypeField and Description
private final ResourceLoader

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ResourceLoader
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resourceLoaderback to summary
private final ResourceLoader resourceLoader

Constructor Detail

NestedResourceRootFactoryback to summary
pack-priv NestedResourceRootFactory(final ResourceLoader resourceLoader)

Method Detail

createResourceLoaderback to summary
public ResourceLoader createResourceLoader(final String rootPath, final String loaderPath, final String loaderName) throws IOException

Implements org.jboss.modules.xml.ModuleXmlParser.ResourceRootFactory.createResourceLoader.